/* General Body Styles */
body {
    background-color: #0d1117;
    color: #c9d1d9;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#app-container.blurred {
    filter: blur(5px) brightness(0.7);
    transition: filter 0.3s ease-in-out;
    pointer-events: none;
}

/* Header & Navigation */
.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #8b949e;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}
.nav-link:hover {
    background-color: #1c2128;
    color: #c9d1d9;
}
.nav-link.active {
    background-color: #005477;
    color: white;
    font-weight: 600;
}

/* Card Styles */
.card {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.5rem;
}

.stat-card {
    background-color: #1c2128;
    border-left: 4px solid #c8942b;
    padding: 1rem;
    border-radius: 6px;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #c9d1d9;
    margin-bottom: 1rem;
}

/* Table Styles */
.table-header {
    background-color: #1c2128;
    color: #8b949e;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 10;
}
.table-row {
    border-bottom: 1px solid #30363d;
    transition: background-color 0.2s ease;
}
.table-row:hover {
    background-color: #1c2128;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn-primary {
    background-color: #0e6485;
    color: white;
    border-color: #0e6485;
}
.btn-primary:hover {
    background-color: #005477;
}
.btn-secondary {
    background-color: #21262d;
    color: #c9d1d9;
    border-color: #30363d;
}
.btn-secondary:hover {
    background-color: #30363d;
}
.btn-danger {
    background-color: #da3633;
    color: white;
    border-color: #da3633;
}
.btn-danger:hover {
    background-color: #b92522;
}


/* Input Styles */
.data-input {
    width: 100%;
    background-color: #0d1117;
    border: 1px solid #30363d;
    color: #c9d1d9;
    border-radius: 6px;
    padding: 0.5rem;
    font-size: 0.875rem;
}
.data-input:focus {
    outline: none;
    border-color: #0e6485;
    box-shadow: 0 0 0 2px rgba(14, 100, 133, 0.5);
}

/* Modal and Overlay Styles */
.modal-overlay, .help-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 17, 23, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1rem;
    overflow-y: auto;
}
.help-overlay {
    align-items: flex-start;
}

/* Insight Card */
.insight-card {
    background-color: #21262d;
    border-left: 4px solid #c8942b;
    padding: 1rem;
    border-radius: 6px;
}

/* Loader Styles */
.loader {
    border: 4px solid #30363d; /* Light grey */
    border-top: 4px solid #c8942b; /* Gold */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tailwind's 'hidden' class for utility */
.hidden {
    display: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.75rem;
    color: #8b949e;
    background-color: #161b22;
    border-top: 1px solid #30363d;
}

/* Chart.js Custom Tooltip */
.chartjs-tooltip {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 3px;
    color: white;
    opacity: 1;
    pointer-events: none;
    position: absolute;
    transform: translate(-50%, 0);
    transition: all .1s ease;
}

