/* --- Simulation Engine Styles --- */

/* Modal Backdrop */
.sim-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 15, 0.85);
    /* Dark blur */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.sim-modal.active {
    display: flex;
    opacity: 1;
}

/* Modal Content area */
.sim-modal-content {
    position: relative;
    width: 90vw;
    max-width: 1100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Container inside modal - must take full width */
.sim-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sim-close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.sim-close-btn:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

/* Desktop Frame (Mac-like) */
.sim-desktop {
    width: 100%;
    max-width: 1000px;
    height: 600px;
    background-color: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .sim-desktop {
        height: 500px;
    }
}

.sim-browser-bar {
    background-color: #e2e8f0;
    height: 40px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #cbd5e1;
}

.mac-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
}

.mac-btn.close {
    background: #ff5f56;
}

.mac-btn.min {
    background: #ffbd2e;
}

.mac-btn.max {
    background: #27c93f;
}

.sim-url {
    background: #fff;
    border-radius: 6px;
    font-size: 13px;
    color: #64748b;
    padding: 4px 16px;
    margin-left: 20px;
    margin-right: auto;
    min-width: 250px;
    text-align: center;
}

/* Mobile Frame (iPhone-like) */
.sim-mobile {
    width: 320px;
    height: 640px;
    background-color: #fff;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 0 0 8px #1e293b;
    border: 2px solid #334155;
}

.sim-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 25px;
    background: #1e293b;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.sim-home-btn {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    z-index: 10;
}

/* Universal Screen Container */
.sim-screen {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    position: relative;
    /* Scrollbar styling for webkit */
}

.sim-screen::-webkit-scrollbar {
    width: 6px;
}

.sim-screen::-webkit-scrollbar-track {
    background: transparent;
}

.sim-screen::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* UI Patterns */

/* 1. App Layout Dashboard (Desktop) */
.sim-app-layout {
    display: flex;
    height: 100%;
    background: #f1f5f9;
}

.sim-app-layout.layout-top {
    flex-direction: column;
}

.sim-sidebar {
    width: 220px;
    background: #fff;
    border-right: 1px solid #e2e8f0;
    padding: 20px 0;
}

.sim-sidebar-item {
    padding: 12px 24px;
    font-size: 14px;
    color: #475569;
    font-weight: 500;
    border-left: 3px solid transparent;
    cursor: default;
}

.sim-sidebar-item:first-child {
    border-left-color: var(--brand);
    color: var(--brand);
    background: rgba(0, 0, 0, 0.02);
}

.sim-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sim-header {
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
}

.sim-header h2 {
    font-size: 18px;
    margin: 0;
    color: #0f172a;
}

.sim-user {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sim-user::before {
    content: '';
    display: block;
    width: 28px;
    height: 28px;
    background: var(--brand);
    border-radius: 50%;
    opacity: 0.2;
}

.sim-nav-links {
    display: flex;
    gap: 24px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.sim-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Content Blocks */
.sim-metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.sim-metric-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.sim-metric-val {
    font-size: 28px;
    font-weight: 700;
    color: var(--brand);
}

.sim-metric-lbl {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.sim-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.sim-card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #0f172a;
}

.sim-mock-chart {
    height: 200px;
    background: repeating-linear-gradient(0deg, transparent, transparent 39px, #f1f5f9 39px, #f1f5f9 40px);
    position: relative;
    border-bottom: 1px solid #cbd5e1;
    border-left: 1px solid #cbd5e1;
}

.sim-mock-chart.bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 70%;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 20px, transparent 20px, transparent 30px);
    background-size: 30px 100%;
    background-repeat: repeat-x;
    opacity: 0.8;
}

.sim-mock-chart.line {
    background: var(--brand);
    opacity: 0.1;
    border-radius: 8px;
    border: none;
}

.sim-mock-table {
    width: 100%;
    font-size: 13px;
}

.sim-table-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    padding: 12px 16px;
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
}

.sim-table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #0f172a;
}

.sim-mock-map {
    height: 300px;
    background: #e2e8f0;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.sim-mock-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(var(--brand) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.3;
}

.sim-mock-input {
    height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    margin-bottom: 12px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    color: #94a3b8;
    font-size: 14px;
}

/* Storefront Add-ons */
.sim-store-hero {
    background: linear-gradient(135deg, var(--brand), #000);
    height: 200px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.sim-store-hero h2 {
    margin: 0;
    font-size: 32px;
    text-align: center;
}

.sim-store-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.sim-store-item {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.sim-store-img {
    height: 120px;
    background: #f1f5f9;
}

.sim-store-info {
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
}

/* 2. Mobile Layouts */
.sim-mobile-layout {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    padding-top: 30px;
    /* Safe area */
}

.sim-mobile-layout.bg-dark {
    background: #0f172a;
    color: #fff;
}

.sim-m-header {
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 700;
    color: inherit;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.bg-dark .sim-m-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.sim-m-map-bg {
    flex: 1;
    background: #e2e8f0;
    position: relative;
}

.sim-m-map-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: var(--brand);
    border-radius: 50%;
    opacity: 0.1;
    transform: translate(-50%, -50%);
}

.sim-m-bottom-sheet {
    background: #fff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 24px 20px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    margin-top: -20px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.sim-m-status {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.sim-m-btn {
    width: 100%;
    background: var(--brand);
    color: #fff;
    border: 2px solid transparent;
    /* Keeps sizing stable when success border added */
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    will-change: background-color, border-color, color;
}

.sim-m-btn.btn-red {
    background: #ef4444;
}

.sim-m-btn:active {
    transform: scale(0.98);
}

/* Scanner view */
.sim-m-scanner-viewport {
    flex: 1;
    background: #000;
    position: relative;
    margin: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.sim-scan-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: scan 2s infinite ease-in-out;
}

@keyframes scan {
    0% {
        top: 10%;
    }

    50% {
        top: 90%;
    }

    100% {
        top: 10%;
    }
}

.sim-m-actions {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Mobile Dashboard Grid */
.sim-m-greeting {
    padding: 20px;
    font-size: 24px;
    font-weight: 700;
}

.sim-m-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 20px;
    margin-bottom: 24px;
}

.sim-m-grid-item {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.sim-m-icon {
    font-size: 24px;
}

/* Mobile Feed */
.sim-m-feed-list {
    padding: 0 20px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sim-m-feed-item {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
}

.sim-m-feed-item strong {
    color: #0f172a;
    font-size: 15px;
}

.sim-m-feed-item small {
    color: #64748b;
    font-size: 13px;
}

/* Integrate the button in main site slightly better */
.project-card .btn.sim-btn {
    margin-top: 1.5rem;
    width: 100%;
    justify-content: center;
    background: rgba(100, 255, 218, 0.1);
    color: var(--primary-color);
    border-color: rgba(100, 255, 218, 0.3);
}

.project-card .btn.sim-btn:hover {
    background: rgba(100, 255, 218, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* =============================================
   ANIMATION ENGINE - Global Animation Classes
   ============================================= */

/* Fade In */
.anim-fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

/* Slide Up */
.anim-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Drop Down (Notifications) */
.anim-drop-down {
    animation: dropDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(-30px);
}

/* Scale In */
.anim-scale-in {
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
    transform: scale(0.9);
}

/* Progress Bar */
.anim-progress-bar {
    width: 0;
    height: 100%;
    background: var(--brand);
    animation: fillProgress 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Delays */
.delay-1 {
    animation-delay: 0.5s;
}

.delay-2 {
    animation-delay: 1.0s;
}

.delay-3 {
    animation-delay: 1.5s;
}

.delay-4 {
    animation-delay: 2.0s;
}

.delay-5 {
    animation-delay: 2.5s;
}

.anim-drop-down.delay-2 {
    animation-delay: 1.5s;
}

.anim-drop-down.delay-3 {
    animation-delay: 2.5s;
}

.anim-scale-in.delay-1 {
    animation-delay: 0.3s;
}

.anim-scale-in.delay-2 {
    animation-delay: 1.0s;
}

.anim-scale-in.delay-3 {
    animation-delay: 1.5s;
}

.anim-scale-in.delay-4 {
    animation-delay: 2.0s;
}

.anim-progress-bar.delay-2 {
    animation-delay: 1.5s;
}

.anim-progress-bar.delay-3 {
    animation-delay: 2.5s;
}

/* Keyframes */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dropDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fillProgress {
    to {
        width: 100%;
    }
}

/* Simulated Mouse Cursor for Desktop */
.sim-cursor {
    position: absolute;
    width: 20px;
    height: 20px;
    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="white" stroke="black" stroke-width="1.5"><path d="M5.5 3.21V20.8c0 .45.54.67.85.35l4.86-4.86a.5.5 0 0 1 .35-.15h6.42c.45 0 .67-.54.35-.85L6.35 3.35a.5.5 0 0 0-.85.35Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    top: 80%;
    left: 80%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.sim-cursor.anim-click-sequence {
    animation: moveCursor 4s cubic-bezier(0.25, 1, 0.5, 1) forwards, clickPulse 4s forwards;
}

@keyframes moveCursor {
    0% {
        opacity: 0;
        top: 80%;
        left: 80%;
    }

    10% {
        opacity: 1;
        top: 80%;
        left: 80%;
    }

    40% {
        top: 40%;
        left: 40%;
    }

    80% {
        top: 40%;
        left: 40%;
        opacity: 1;
    }

    100% {
        opacity: 0;
        top: 40%;
        left: 40%;
    }
}

@keyframes clickPulse {

    0%,
    45% {
        transform: scale(1);
    }

    46% {
        transform: scale(0.85);
    }

    50%,
    100% {
        transform: scale(1);
    }
}

/* Simulated Tap Gesture for Mobile */
.sim-tap {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.5);
}

.sim-tap.anim-tap-sequence {
    animation: tapGesture 4s forwards;
}

@keyframes tapGesture {

    0%,
    55% {
        opacity: 0;
        transform: scale(0.5);
    }

    56% {
        opacity: 1;
        transform: scale(0.5);
    }

    60% {
        opacity: 0;
        transform: scale(1.5);
    }

    100% {
        opacity: 0;
    }
}

/* =============================================
   CUSTOM SEQUENCE: DATA ANALYSIS (SQL -> EXCEL -> PPT)
   ============================================= */

/* Step 1: SQL Typing Effect */
.anim-typing {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #34d399;
    width: 0;
    animation: typingCode 2.5s steps(40, end) forwards, blinkCursor 0.5s step-end infinite alternate;
}

@keyframes typingCode {
    from {
        width: 0;
    }

    to {
        width: 100%;
        border-right-color: transparent;
    }
}

@keyframes blinkCursor {
    50% {
        border-color: transparent;
    }
}

/* Window Transitions for 3-step process */
.anim-fade-out-step {
    animation: fadeOutStep 0.5s forwards;
    animation-delay: 3s;
}

@keyframes fadeOutStep {
    to {
        opacity: 0;
        pointer-events: none;
    }
}

.anim-slide-up-step2 {
    opacity: 0;
    animation: slideUpStep2 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 3.2s;
}

@keyframes slideUpStep2 {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.anim-fade-out-step2 {
    animation: fadeOutStep2 0.5s forwards;
    animation-delay: 6s;
}

@keyframes fadeOutStep2 {
    to {
        opacity: 0;
        transform: scale(0.95);
        pointer-events: none;
    }
}

.anim-scale-in-step3 {
    opacity: 0;
    animation: scaleInStep3 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 6.2s;
}

@keyframes scaleInStep3 {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Simulated Excel Pie Chart filling up */
.sim-pie-chart {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(transparent 0, transparent 100%);
    animation: fillPieChart 1s ease-out forwards;
    animation-delay: 4.5s;
}

@keyframes fillPieChart {
    to {
        background: conic-gradient(#10b981 0% 45%, #3b82f6 45% 75%, #f59e0b 75% 100%);
    }
}

/* PPT Slide element appearing */
.anim-slide-element {
    opacity: 0;
    animation: slideInLeft 0.5s forwards;
    animation-delay: 7s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Skeleton Loading Pulses */
.sim-skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: skeletonLoad 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeletonLoad {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Data changes / highlights */
.anim-highlight {
    animation: highlightFlash 3s forwards;
}

@keyframes highlightFlash {

    0%,
    65% {
        background-color: transparent;
        color: inherit;
    }

    66% {
        background-color: var(--brand);
        color: #fff;
        transform: scale(1.05);
    }

    100% {
        background-color: transparent;
        color: var(--brand);
        transform: scale(1);
    }
}

.anim-swap-text {
    animation: swapText 4s forwards;
}

@keyframes swapText {

    0%,
    60% {
        opacity: 1;
    }

    61% {
        content: var(--new-text);
        color: var(--brand);
    }

    100% {
        content: var(--new-text);
        color: var(--brand);
    }
}

/* =============================================
   HIGH-FIDELITY GENERIC COMPONENTS
   ============================================= */

/* Glass Panel */
.sim-glass-panel {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Desktop App Layout */
.sim-app-layout {
    display: flex;
    height: 100%;
    background: #0f172a;
    color: #f1f5f9;
}

.sim-app-layout.layout-top {
    flex-direction: column;
}

/* Sidebar */
.sim-sidebar {
    width: 240px;
    background: rgba(15, 23, 42, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sim-sidebar-logo {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 32px;
    padding-left: 12px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sim-sidebar-logo::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: var(--brand, #64ffda);
    border-radius: 6px;
}

.sim-sidebar-item {
    padding: 10px 12px;
    font-size: 14px;
    color: #94a3b8;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sim-sidebar-item.active {
    background: rgba(100, 200, 255, 0.15);
    color: var(--brand, #64ffda);
}

.sim-sidebar-item-icon {
    width: 16px;
    height: 16px;
    background: currentColor;
    opacity: 0.8;
    border-radius: 3px;
}

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

.sim-header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sim-header h2 {
    font-size: 20px;
    margin: 0;
    font-weight: 600;
}

.sim-nav-links {
    display: flex;
    gap: 24px;
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
}

.sim-content-pad {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Metrics Grid */
.sim-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.sim-metric-val {
    font-size: 32px;
    font-weight: 700;
    margin-top: 12px;
    color: #fff;
}

.sim-metric-lbl {
    font-size: 13px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Beautiful Table */
.sim-table-wrap {
    width: 100%;
}

.sim-table-head,
.sim-table-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.sim-table-head {
    color: #94a3b8;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.2);
}

.sim-table-row {
    color: #e2e8f0;
}

.sim-status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.sim-status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #fcd34d;
}

.sim-status-success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

/* Mobile Map Overlay */
.sim-m-map-bg {
    flex: 1;
    background-color: #0f172a;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    position: relative;
}

.sim-m-route-line {
    position: absolute;
    top: 40%;
    left: 20%;
    width: 60%;
    height: 2px;
    background: var(--brand, #64ffda);
    transform: rotate(20deg);
    box-shadow: 0 0 10px var(--brand, #64ffda);
}

.sim-m-vehicle {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    border: 4px solid var(--brand, #64ffda);
    top: calc(40% - 12px);
    left: calc(20% - 12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

/* Animated Vehicle Movement */
.anim-move-vehicle {
    animation: moveVehicle 4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes moveVehicle {
    0% {
        left: 20%;
        top: calc(40% - 12px);
        transform: rotate(0);
    }

    100% {
        left: calc(80% - 12px);
        top: calc(60% - 12px);
        transform: rotate(20deg);
    }
}

/* Mobile Bottom Sheet */
.sim-m-bottom-sheet {
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 20px 40px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.sim-m-btn {
    width: 100%;
    background: var(--brand, #64ffda);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    margin-top: 16px;
    box-shadow: 0 4px 12px rgba(var(--brand-rgb), 0.3);
}

/* Notification Dropdown */
.sim-m-notification {
    position: absolute;
    top: 50px;
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 200;
}

.sim-m-notif-icon {
    width: 40px;
    height: 40px;
    background: var(--brand, #64ffda);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sim-m-notif-text strong {
    display: block;
    font-size: 15px;
    color: #fff;
}

.sim-m-notif-text span {
    font-size: 13px;
    color: #cbd5e1;
}

/* Mobile Dashboard layout */
.sim-m-d-header {
    padding: 50px 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.sim-m-d-title {
    font-size: 28px;
    font-weight: 700;
}

.sim-m-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 0 20px;
}

.sim-m-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sim-m-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(var(--brand-rgb), 0.2);
    color: var(--brand, #64ffda);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Scanner Laser */
.sim-m-scanner-box {
    margin: 40px 20px;
    height: 300px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sim-m-barcode {
    width: 80%;
    height: 100px;
    background: repeating-linear-gradient(90deg, #fff 0, #fff 4px, transparent 4px, transparent 8px, #fff 8px, #fff 10px, transparent 10px, transparent 14px);
    opacity: 0.8;
}

.sim-laser {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #22c55e;
    box-shadow: 0 0 20px 5px rgba(34, 197, 94, 0.5);
}

.sim-laser.anim-scan {
    animation: scanLaser 2s ease-in-out forwards;
}

@keyframes scanLaser {
    0% {
        top: 10%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        top: 90%;
    }

    90% {
        top: 50%;
        opacity: 1;
    }

    100% {
        top: 50%;
        opacity: 0;
    }
}

/* Mobile Feed List */
.sim-m-feed-list {
    padding: 0 20px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sim-m-feed-item {
    background: rgba(30, 41, 59, 0.6);
    padding: 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sim-m-feed-item strong {
    color: #fff;
    font-size: 15px;
}

.sim-m-feed-item small {
    color: #64748b;
    font-size: 13px;
}

/* Mobile Actions */
.sim-m-actions {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}