/* ========================================
   Master Assets Cloud Mobile
   Professional Light Theme - Corporate Design
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Primary Brand Colors */
    --primary: #1a56db;
    --primary-dark: #1648b8;
    --primary-light: #3b82f6;
    --primary-soft: rgba(26, 86, 219, 0.1);

    /* Professional Light Theme */
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-secondary: #f1f5f9;
    --bg-input: #f8fafc;
    --bg-nav: rgba(255, 255, 255, 0.98);

    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-gray: #64748b;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;

    /* Border & Effects */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-focus: #1a56db;

    /* Status Colors - Professional Palette */
    --success: #059669;
    --success-bg: rgba(5, 150, 105, 0.1);
    --warning: #d97706;
    --warning-bg: rgba(217, 119, 6, 0.1);
    --danger: #dc2626;
    --danger-bg: rgba(220, 38, 38, 0.1);
    --info: #0284c7;
    --info-bg: rgba(2, 132, 199, 0.1);

    /* Radius */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Shadows - Subtle & Professional */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);

    /* Phone Frame */
    --frame-color: #1f2937;
    --frame-inner: #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #a3062d 0%, #6e0202 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
}

/* ========================================
   Phone Frame Container
   ======================================== */
.phone-container {
    position: relative;
    width: 375px;
    height: 812px;
}

.phone-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--frame-color);
    border-radius: 50px;
    padding: 12px;
    box-shadow:
        0 0 0 2px #374151,
        0 0 0 5px #1f2937,
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 0 0 2px #374151;
}

/* Side Buttons */
.phone-frame::before {
    content: '';
    position: absolute;
    right: -3px;
    top: 120px;
    width: 3px;
    height: 30px;
    background: #374151;
    border-radius: 0 2px 2px 0;
}

.phone-frame::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 165px;
    width: 3px;
    height: 55px;
    background: #374151;
    border-radius: 0 2px 2px 0;
}

/* Volume Buttons */
.volume-buttons {
    position: absolute;
    left: -3px;
    top: 120px;
    width: 3px;
    height: 30px;
    background: #374151;
    border-radius: 2px 0 0 2px;
}

.volume-buttons::after {
    content: '';
    position: absolute;
    left: 0;
    top: 45px;
    width: 3px;
    height: 55px;
    background: #374151;
    border-radius: 2px 0 0 2px;
}

/* Phone Screen */
.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-main);
    border-radius: 40px;
    overflow: hidden;
    position: relative;
}

/* Dynamic Island / Notch */
.dynamic-island {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 35px;
    background: #000;
    border-radius: 20px;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
}

.dynamic-island::before {
    content: '';
    position: absolute;
    right: 30px;
    width: 10px;
    height: 10px;
    background: #1c1c1e;
    border-radius: 50%;
    border: 2px solid #2c2c2e;
}

/* Mobile Frame (Content Area) */
.mobile-frame {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-main);
    position: relative;
    overflow: hidden;
}

.mobile-frame::-webkit-scrollbar {
    width: 0;
    display: none;
}

/* Scrollable Content Wrapper */
.scrollable-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.scrollable-content::-webkit-scrollbar {
    width: 0;
    display: none;
}

/* ========================================
   Status Bar
   ======================================== */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 55px 24px 12px;
    background: var(--bg-card);
    position: sticky;
    top: 0;
    z-index: 100;
}

.status-bar .time {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.status-bar .icons {
    display: flex;
    gap: 5px;
    font-size: 14px;
    color: var(--text-primary);
}

/* ========================================
   Screen Content
   ======================================== */
.screen-content {
    padding: 20px;
    padding-bottom: 30px;
    background: var(--bg-main);
}

/* ========================================
   Headers
   ======================================== */
.screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 55px 20px 15px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.screen-header .back-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.screen-header .back-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.screen-header .title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.screen-header .action-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.screen-header .action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ========================================
   Header Section
   ======================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.header-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.header-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 17px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-xs);
}

.header-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   Search Box
   ======================================== */
.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
    box-shadow: var(--shadow-xs);
    transition: all 0.2s ease;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.search-box i {
    color: var(--text-muted);
    font-size: 16px;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

/* ========================================
   Stats Grid
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card .icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 12px;
}

.stat-card .icon.primary {
    background: var(--primary-soft);
    color: var(--primary);
}

.stat-card .icon.success {
    background: var(--success-bg);
    color: var(--success);
}

.stat-card .icon.warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.stat-card .icon.danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.stat-card .icon.info {
    background: var(--info-bg);
    color: var(--info);
}

.stat-card .value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-card .label {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 500;
}

/* ========================================
   Section Styles
   ======================================== */
.section {
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.section-link {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.section-link:hover {
    color: var(--primary-dark);
}

/* ========================================
   Quick Actions
   ======================================== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.quick-action i {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s ease;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.quick-action:hover i {
    transform: translateY(-3px);
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.quick-action span {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
}

/* ========================================
   Asset List
   ======================================== */
.asset-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.asset-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-xs);
}

.asset-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateX(2px);
}

.asset-item .icon,
.asset-item .asset-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
}

.asset-item .details,
.asset-item .asset-info {
    flex: 1;
    min-width: 0;
}

.asset-item .asset-id {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.asset-item .asset-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asset-item .asset-location {
    font-size: 12px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

.asset-item .asset-location i {
    font-size: 10px;
    color: var(--primary);
    width: auto;
    height: auto;
    background: none;
}

.asset-item .arrow,
.asset-item .asset-status {
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========================================
   Badges
   ======================================== */
.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge.active {
    background: var(--success-bg);
    color: var(--success);
}

.badge.warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.badge.danger,
.badge.missing {
    background: var(--danger-bg);
    color: var(--danger);
}

.badge.info {
    background: var(--info-bg);
    color: var(--info);
}

/* ========================================
   Bottom Navigation
   ======================================== */
.bottom-nav {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0 28px;
    background: var(--bg-nav);
    border-top: 1px solid var(--border);
    z-index: 100;
    border-radius: 0 0 40px 40px;
    position: relative;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-gray);
    font-size: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    padding: 4px 12px;
}

.nav-item i {
    font-size: 20px;
    transition: all 0.2s ease;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -10px;
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* ========================================
   Floating Scan Button
   ======================================== */
.float-scan-btn,
.scan-button {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(26, 86, 219, 0.4);
    text-decoration: none;
    z-index: 101;
    transition: all 0.2s ease;
    border: 3px solid white;
}

.float-scan-btn:hover,
.scan-button:hover {
    transform: translateX(-50%) scale(1.08);
    box-shadow: 0 6px 20px rgba(26, 86, 219, 0.5);
}

.float-scan-btn:active,
.scan-button:active {
    transform: translateX(-50%) scale(0.95);
}

/* ========================================
   Filter Chips
   ======================================== */
.filter-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.chip {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
}

.chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ========================================
   Form Elements
   ======================================== */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(26, 86, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--text-light);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ========================================
   Scanner View
   ======================================== */
.scanner-view {
    position: relative;
    height: 280px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanner-overlay {
    width: 180px;
    height: 180px;
    border: 2px solid var(--primary);
    border-radius: 16px;
    position: relative;
}

.scanner-overlay::before,
.scanner-overlay::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--primary);
    border-style: solid;
}

.scanner-overlay::before {
    top: -2px;
    left: -2px;
    border-width: 3px 0 0 3px;
    border-radius: 12px 0 0 0;
}

.scanner-overlay::after {
    bottom: -2px;
    right: -2px;
    border-width: 0 3px 3px 0;
    border-radius: 0 0 12px 0;
}

.scan-line {
    position: absolute;
    width: 160px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% {
        top: 20px;
    }

    50% {
        top: 150px;
    }

    100% {
        top: 20px;
    }
}

/* ========================================
   Progress Circle
   ======================================== */
.progress-circle {
    width: 140px;
    height: 140px;
    position: relative;
    margin: 0 auto 20px;
}

.progress-circle svg {
    transform: rotate(-90deg);
}

.progress-circle .bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 10;
}

.progress-circle .progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 408;
    stroke-dashoffset: 82;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-text .value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.progress-text .label {
    font-size: 12px;
    color: var(--text-gray);
}

/* ========================================
   Info Cards
   ======================================== */
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
}

.info-card .card-title {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    color: var(--text-gray);
    font-size: 13px;
}

.info-row .value {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 13px;
}

/* ========================================
   Category Selector
   ======================================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.category-item.selected {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.category-item i {
    font-size: 22px;
    color: var(--primary);
}

.category-item span {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
}

/* ========================================
   Step Indicator
   ======================================== */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.step-indicator .step {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.step-indicator .step.active {
    background: var(--primary);
    border-color: var(--primary);
    width: 28px;
    border-radius: 5px;
}

.step-indicator .step.completed {
    background: var(--success);
    border-color: var(--success);
}

/* ========================================
   Barcode Display
   ======================================== */
.barcode-display {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    margin-bottom: 18px;
}

.barcode-display img {
    height: 50px;
    margin-bottom: 8px;
}

.barcode-display .code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 14px;
    color: var(--text-primary);
    letter-spacing: 2px;
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.empty-state i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 17px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-gray);
}

/* ========================================
   Toast Notification
   ======================================== */
.toast {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 200;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.toast.success {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.toast.error {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeIn 0.3s ease forwards;
}

.animate {
    animation: slideUp 0.4s ease forwards;
    opacity: 0;
}

/* ========================================
   Welcome Section
   ======================================== */
.welcome-section {
    margin-bottom: 24px;
}

.welcome-section .greeting {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.welcome-section .user-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ========================================
   Profile Section Styles
   ======================================== */
.profile-header {
    text-align: center;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 32px;
    color: var(--primary);
}

.profile-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-role {
    font-size: 14px;
    color: var(--text-gray);
}

/* ========================================
   Menu List
   ======================================== */
.menu-list {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.2s;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: var(--bg-secondary);
}

.menu-item i {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.menu-item span {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.menu-item .arrow {
    color: var(--text-muted);
    font-size: 14px;
}

/* ========================================
   Responsive - Standalone Mode
   ======================================== */
@media (max-width: 430px) {
    body {
        padding: 0;
        background: var(--bg-main);
    }

    .phone-container,
    .phone-frame {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }

    .phone-screen {
        border-radius: 0;
    }

    .dynamic-island {
        display: none;
    }

    .status-bar {
        padding-top: 12px;
    }

    .screen-header {
        padding-top: 12px;
    }

    .bottom-nav {
        width: 100%;
        border-radius: 0;
    }
}