/* Advanced Hero Animation Container - iOS/Digital Style */
.hero-visual {
    position: relative;
    overflow: hidden;
    background: #0f172a; /* Dark tech background */
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

/* Digital Grid Background */
.digital-grid-bg {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes gridMove {
    from { background-position: 0 0; }
    to { background-position: 0 50px; }
}

/* Radar/Processing Circle Background */
.radar-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    box-shadow: inset 0 0 50px rgba(16, 185, 129, 0.05);
}
.radar-bg::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    transform-origin: 0 0;
    background: conic-gradient(from 0deg, transparent 70%, rgba(16, 185, 129, 0.4) 100%);
    animation: radarScan 4s linear infinite;
}
@keyframes radarScan {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Dashboard Base Styling */
.adv-dashboard {
    position: absolute;
    width: 90%;
    max-width: 850px;
    height: 85%;
    z-index: 1;
    display: flex;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: rotateX(5deg) scale(0.95);
    transition: opacity 0.8s ease, visibility 0.8s, transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.adv-dashboard.active {
    opacity: 1;
    visibility: visible;
    transform: rotateX(0deg) scale(1);
}

/* Glassmorphism / Aluminium Style (iOS 26 feel) */
.glass-aluminium {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,1);
    border-radius: 16px;
}

/* Zoom States controlled by JS */
.adv-dashboard.zoom-sidebar {
    transform: rotateX(2deg) scale(1.05) translateX(5%);
}
.adv-dashboard.zoom-content {
    transform: rotateX(2deg) scale(1.05) translateX(-5%);
}

/* Sidebar */
.adv-sidebar {
    width: 220px;
    background: rgba(255,255,255,0.4);
    border-right: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    backdrop-filter: blur(10px);
}
.adv-logo {
    padding: 0 20px;
    margin-bottom: 30px;
    font-weight: 800;
    color: #0f172a;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}
.adv-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 10px;
}
.adv-menu-item {
    padding: 10px 15px;
    color: #475569;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.adv-menu-item.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.adv-menu-item.hover-sim {
    background: rgba(255,255,255,0.6);
    color: #1e293b;
}

/* Main Content Area */
.adv-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.adv-header {
    height: 55px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    background: rgba(255,255,255,0.2);
}
.adv-search {
    width: 180px;
    height: 28px;
    background: rgba(0,0,0,0.04);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.5);
}
.adv-profile {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary), #0ea5e9);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.adv-content-wrapper {
    flex: 1;
    padding: 25px;
    position: relative;
}

/* Pages */
.adv-page {
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    bottom: 25px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.adv-page.active {
    opacity: 1;
    visibility: visible;
}

/* Stats Layout */
.adv-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.adv-stat-card {
    background: rgba(255,255,255,0.7);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.adv-stat-title {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}
.adv-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}
.adv-chart-card {
    background: rgba(255,255,255,0.7);
    flex: 1;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,1);
    padding: 15px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.adv-bar {
    flex: 1;
    background: #e2e8f0;
    border-radius: 4px 4px 0 0;
    animation: growBar 2s ease-out forwards;
    transform-origin: bottom;
}
@keyframes growBar { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Table/Form Layout */
.adv-table-card {
    background: rgba(255,255,255,0.7);
    flex: 1;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.adv-table-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
}
.adv-table-row {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    font-size: 13px;
    color: #334155;
    align-items: center;
}

.form-label-mock {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
}
.form-field {
    border: 1px solid rgba(0,0,0,0.08);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #0f172a;
    min-height: 34px;
    background: #ffffff;
    display: flex;
    align-items: center;
    font-weight: 500;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

/* Typing effect cursor */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--primary);
}
@keyframes blink { 50% { opacity: 0; } }

/* The Fake Cursor */
.fake-cursor {
    position: absolute;
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23ffffff" stroke="%230f172a" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"/></svg>');
    background-size: contain;
    z-index: 1000;
    pointer-events: none;
    top: 110%;
    left: 90%;
    transition: top 1s cubic-bezier(0.25, 1, 0.5, 1), left 1s cubic-bezier(0.25, 1, 0.5, 1), transform 0.2s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}
.fake-cursor.clicking {
    transform: scale(0.8);
}

/* Responsive adjustments for mobile */
@media (max-width: 900px) {
    .hero-visual { height: 380px !important; }
    #dashboards-container {
        transform: scale(0.7);
        transform-origin: center center;
    }
}
@media (max-width: 768px) {
    .hero-visual { height: 300px !important; }
    #dashboards-container {
        transform: scale(0.5);
        transform-origin: center center;
    }
}
@media (max-width: 480px) {
    .hero-visual { height: 220px !important; }
    #dashboards-container {
        transform: scale(0.35);
        transform-origin: center center;
    }
}