﻿.solar-container {
    display: flex;
    width: 100%;
    height: calc(100vh - 100px);
    background: #000814;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.canvas-area {
    /* flex: 1; */
    position: relative;
    background: radial-gradient(circle, #0a2a4a 0%, #000814 100%);
    overflow: hidden;
}

.table-area {
    width: 380px;
    background: rgba(6, 26, 47, 0.9);
    border-left: 1px solid #00ffff44;
    display: flex;
    flex-direction: column;
}

#polar {
    width: 100%;
    height: 100%;
    display: block;
}

#todayBox {
    position: absolute;
    left: 10px;
    top: 20px;
    width: 240px;
    padding: 15px;
    background: rgba(0, 15, 30, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid #00ffff;
    color: white;
    z-index: 10;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.table-header {
    padding: 15px;
    color: #00ffff;
    font-weight: bold;
    border-bottom: 1px solid #00ffff44;
    text-align: center;
    letter-spacing: 2px;
}

.table-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 5px;
}

#termTable {
    width: 100%;
    border-collapse: collapse;
    color: white;
    font-size: 13px;
}

    #termTable th, #termTable td {
        padding: 12px 8px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-align: left;
    }

    #termTable th {
        color: #00ffff;
        position: sticky;
        top: 0;
        background: #061a2f;
        z-index: 2;
    }

.current-row {
    background: rgba(0, 255, 255, 0.15);
    color: #00ffff;
    font-weight: bold;
    border-left: 3px solid #00ffff;
}
/* Tùy chỉnh thanh cuộn */
.table-scroll::-webkit-scrollbar {
    width: 5px;
}

.table-scroll::-webkit-scrollbar-thumb {
    background: #00ffff44;
    border-radius: 5px;
}

@media (max-width: 768px) {

    /* Ẩn canvas */
    #polar {
        display: none;
    }

    /* Ẩn trái đất */
    #earthImg {
        display: none !important;
    }

    /* canvas-area trở thành box thường */
    .canvas-area {
        position: static;
        width: 95%;
        height: auto;
        background: none;
        overflow: visible;
    }

    /* today box full width */
    #todayBox {
        position: relative;
        width: 100%;
        margin-bottom: 14px;
        box-sizing: border-box;
    }

    /* table xuống dưới */
    .solar-container {
        display: flex;
        flex-direction: column;
    }

    .table-area {
        width: 100%;
        overflow: hidden;
    }

    .table-scroll {
        width: 100%;
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #termTable {
/*        min-width: 520px;*/
        border-collapse: collapse;
    }
}
}
