:root {
    --bg-dark: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    --accent-purple: #8b5cf6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 2rem;
    overflow-x: hidden;
    position: relative;
}

/* Background Animations */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-cyan);
    bottom: 10%;
    right: 5%;
    animation-delay: -5s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: var(--accent-pink);
    top: 30%;
    left: 40%;
    animation-duration: 15s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
}

header .highlight {
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

header p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Components */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.control-panel {
    display: flex;
    gap: 2rem;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input[type="date"] {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 0.8rem;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

input[type="date"]:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

/* Buttons */
button {
    padding: 0.8rem 2rem;
    border-radius: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Button Group */
.button-group-right {
    display: flex;
    gap: 1rem;
    margin-left: auto;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.2rem;
    border-radius: 0.8rem;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #1e293b;
    border: 1px solid var(--glass-border);
    width: 500px;
    padding: 2rem;
    position: relative;
    text-align: center;
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.close-modal:hover {
    color: var(--text-primary);
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--glass-border);
    border-radius: 1rem;
    padding: 3rem 1rem;
    margin: 2rem 0;
    cursor: pointer;
    transition: 0.3s;
    color: var(--text-secondary);
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.05);
    color: var(--text-primary);
}

.upload-area i {
    margin-bottom: 1rem;
    color: var(--accent-purple);
}

.sub-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Status Messages */
.status-msg {
    margin-top: 1rem;
    font-weight: 600;
}

.success {
    color: #10b981;
}

.error {
    color: #ef4444;
}

/* Calendar Indicators */
.dots-container {
    position: absolute;
    bottom: 1px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 1px;
    height: 4px;
    /* Fix height */
}

.dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    flex-shrink: 0;
    /* Prevent shrinking */
}

.dot-active {
    background-color: #10b981;
}

/* Green */
.dot-deploy {
    background-color: #3b82f6;
}

/* Blue */
.dot-tk {
    background-color: #a855f7;
}

/* Purple */
.dot-bt {
    background-color: #ec4899;
}

/* Pink */

/* Legend */
.legend-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.dot-legend {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Tables */
.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mt-large {
    margin-top: 4rem;
}

.badge {
    background: rgba(6, 182, 212, 0.2);
    color: var(--accent-cyan);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.badge-pink {
    background: rgba(236, 72, 153, 0.2);
    color: var(--accent-pink);
}

.table-wrapper {
    overflow-x: auto;
    padding: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: auto;
    font-size: 0.75rem;
}

th,
td {
    padding: 0.4rem 0.3rem;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    white-space: nowrap;
}

thead tr:first-child th {
    background: rgba(0, 0, 0, 0.2);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.group-tk {
    color: var(--accent-cyan);
    border-bottom: 2px solid var(--accent-cyan);
}

.group-bt {
    color: var(--accent-pink);
    border-bottom: 2px solid var(--accent-pink);
}

.group-total {
    color: var(--text-primary);
    border-bottom: 2px solid var(--text-primary);
}

tbody tr.parent-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Detail Rows */
.child-row {
    background: rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.child-row td {
    font-size: 0.7rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Comparison Styles */
.comparison-toggle {
    margin: 1.5rem 0 1rem 0;
}

.comparison-toggle label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.comparison-toggle input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

.comparison-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-col {
    background: rgba(255, 215, 0, 0.08);
    min-width: 50px;
}

.change-positive {
    color: #4ade80;
    font-weight: 600;
}

.change-negative {
    color: #f87171;
    font-weight: 600;
}

.change-neutral {
    color: #94a3b8;
}

/* Group Header Rows */
.group-header-row {
    background: rgba(255, 255, 255, 0.12) !important;
    border-left: 3px solid currentColor;
}

.group-header-row td {
    font-size: 0.8rem !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

.group-header-row:hover {
    background: rgba(255, 255, 255, 0.18) !important;
}