/* Premium Dark Theme Stylesheet */
:root {
    --bg-main: #060913;
    --bg-card: rgba(13, 20, 38, 0.45);
    --bg-card-hover: rgba(20, 30, 58, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(59, 130, 246, 0.3);
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Neon Accents */
    --accent-blue: #3b82f6;
    --accent-blue-glow: rgba(59, 130, 246, 0.15);
    --accent-purple: #a855f7;
    --accent-green: #10b981;
    --accent-orange: #f97316;
    --accent-yellow: #eab308;
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'Space Grotesk', monospace;
    
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --card-blur: blur(16px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    padding-bottom: 2rem;
}

/* Background Glowing Orbs */
.glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    mix-blend-mode: screen;
    animation: float 20s infinite alternate;
}

.orb-1 {
    top: -10%;
    left: 10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 80%);
}

.orb-2 {
    bottom: -10%;
    right: 10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 80%);
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(5%, 5%) scale(1.1);
    }
}

/* Typography & Layout */
.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.company-badge {
    width: 150px;
    text-align: center;
    margin-bottom: 0.35rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

/* Header */
.app-header {
    border-bottom: 1px solid var(--border-color);
    background: rgba(6, 9, 19, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.logo-area h1 {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Controls */
.control-panel {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

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

.control-group label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.custom-select {
    background: rgba(13, 20, 38, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

.custom-select:hover, .custom-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 12px var(--accent-blue-glow);
}

.toggle-btn-group {
    display: flex;
    background: rgba(13, 20, 38, 0.8);
    border: 1px solid var(--border-color);
    padding: 0.25rem;
    border-radius: 8px;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-btn:hover {
    color: var(--text-primary);
}

.toggle-btn.active {
    background: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

/* Dashboard Grid Layout */
.dashboard-grid {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* KPI Cards */
.kpi-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--card-shadow);
    backdrop-filter: var(--card-blur);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kpi-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: 0 12px 24px -10px rgba(59, 130, 246, 0.15);
}

.kpi-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.05);
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.kpi-data {
    display: flex;
    flex-direction: column;
}

.kpi-label {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kpi-value {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0.15rem 0;
    font-family: var(--font-mono);
}

.kpi-subtext {
    font-size: 0.75rem;
    line-height: 1.3;
    color: var(--text-secondary);
}

/* Charts Grid */
.chart-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.large-chart {
    grid-column: span 2;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    backdrop-filter: var(--card-blur);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: border-color 0.3s ease;
}

.chart-card:hover {
    border-color: var(--border-hover);
}

.chart-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.chart-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
}

.large-chart .chart-wrapper {
    height: 400px;
}

/* Remarks & Timeline */
.remarks-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    backdrop-filter: var(--card-blur);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.remarks-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.remarks-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom Scrollbar for Timeline */
.timeline-container::-webkit-scrollbar {
    width: 6px;
}

.timeline-container::-webkit-scrollbar-track {
    background: transparent;
}

.timeline-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.timeline-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    align-items: flex-start;
    transition: all 0.2s ease;
}

.timeline-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.timeline-year {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    min-width: 65px;
    text-align: center;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.timeline-company {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.timeline-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Footer */
.app-footer-bar {
    max-width: 1400px;
    margin: 2rem auto 0;
    padding: 0 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Responsive Tweaks */
@media (max-width: 1024px) {
    .chart-section {
        grid-template-columns: 1fr;
    }
    .large-chart {
        grid-column: span 1;
    }
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .control-panel {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    .control-panel {
        flex-direction: column;
        align-items: stretch;
    }
    .kpi-container {
        grid-template-columns: 1fr;
    }
}
