/* Modern CSS Reset and Variables */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #475569;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-sidebar: #0f172a;
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    --border-radius: 8px;
    --border-radius-lg: 16px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow: hidden; /* App feel */
}

.auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    padding: 1rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
}

.login-card h1 {
    font-size: 1.35rem;
    margin: 1rem 0 1.5rem;
}

.login-logo {
    padding: 0;
    border-bottom: 0;
}

.login-logo span {
    color: var(--text-main);
}

.form-error {
    min-height: 1.25rem;
    color: var(--danger);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.login-hint,
.muted-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* Typography Utilities */
.text-blue { color: var(--primary); }
.text-green { color: var(--success); }
.text-orange { color: var(--warning); }
.text-purple { color: #8b5cf6; }

.bg-blue-light { background-color: #dbeafe; }
.bg-green-light { background-color: #d1fae5; }
.bg-orange-light { background-color: #fef3c7; }
.bg-purple-light { background-color: #ede9fe; }

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1001;
    transform: translateX(-100%);
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.logo {
    padding: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo span {
    color: #fff;
}

.nav-menu {
    flex: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    color: #cbd5e1;
    text-decoration: none;
    gap: 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.nav-item:hover, .nav-item.active {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.nav-item.active {
    border-left-color: var(--primary);
    background-color: rgba(37, 99, 235, 0.1);
}

.sidebar-footer {
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 0;
}

@media (max-width: 768px) {
    .main-content {
        padding-bottom: 70px; /* Space for bottom nav */
    }
}

/* Topbar */
.topbar {
    height: 70px;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: flex;
}

.search-container {
    display: none;
    align-items: center;
    background-color: var(--bg-main);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    width: 100%;
    max-width: 250px;
    border: 1px solid var(--border);
}

@media (min-width: 768px) {
    .search-container {
        display: flex;
    }
}

.search-container i {
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.search-container input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

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

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    height: 18px;
    width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--bg-surface);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Views Wrapper */
.content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    position: relative;
}

.view-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.date-display {
    color: var(--text-muted);
    font-weight: 500;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--bg-main);
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
}

.btn-text:hover {
    text-decoration: underline;
}

/* Cards & Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background-color: var(--bg-surface);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-details p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.stat-details h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.card {
    background-color: var(--bg-surface);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: 1.25rem;
    transition: var(--transition);
}

@media (min-width: 768px) {
    .card {
        padding: 1.5rem;
    }
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.action-box {
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}

.action-box i {
    font-size: 1.5rem;
    color: var(--primary);
}

.action-box:hover {
    border-color: var(--primary);
    background-color: var(--bg-surface);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background-color: var(--bg-main);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tbody tr:hover {
    background-color: var(--bg-main);
}

.data-table td {
    font-size: 0.9rem;
}

/* =============================================
   MOBILE CARD VIEW SYSTEM
   Desktop = table (.desktop-table)
   Mobile  = cards (.mobile-cards)
   ============================================= */

.mobile-cards {
    display: none;
}

@media (max-width: 768px) {
    .desktop-table {
        display: none !important;
    }

    .mobile-cards {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 4px 0;
    }

    /* Individual card */
    .m-card {
        background: #fff;
        border-radius: 16px;
        padding: 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        cursor: pointer;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
        position: relative;
        overflow: hidden;
    }

    .m-card:active {
        transform: scale(0.985);
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }

    /* Colored left accent bar */
    .m-card::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: var(--primary);
        border-radius: 16px 0 0 16px;
    }

    .m-card.accent-green::before { background: var(--success); }
    .m-card.accent-orange::before { background: var(--warning); }
    .m-card.accent-red::before { background: var(--danger); }
    .m-card.accent-purple::before { background: #8b5cf6; }

    /* Card header row: avatar + name + badge */
    .m-card-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
    }

    .m-card-avatar {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: linear-gradient(135deg, #dbeafe, #bfdbfe);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        color: var(--primary);
        font-weight: 700;
        flex-shrink: 0;
    }

    .m-card-avatar.green { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: var(--success); }
    .m-card-avatar.orange { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }
    .m-card-avatar.purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #7c3aed; }

    .m-card-title {
        flex: 1;
        min-width: 0;
    }

    .m-card-title h4 {
        font-size: 1rem;
        font-weight: 700;
        color: var(--text-main);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0 0 2px;
    }

    .m-card-title p {
        font-size: 0.78rem;
        color: var(--text-muted);
        margin: 0;
    }

    /* Pill/badge in header */
    .m-card-badge {
        flex-shrink: 0;
    }

    /* Info chips row */
    .m-card-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px;
    }

    .m-chip {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 4px 10px;
        font-size: 0.76rem;
        color: var(--text-muted);
        font-weight: 500;
    }

    .m-chip i {
        font-size: 0.7rem;
        color: var(--primary);
    }

    /* Footer: action buttons */
    .m-card-footer {
        display: flex;
        gap: 8px;
        padding-top: 12px;
        border-top: 1px solid #f1f5f9;
    }

    .m-card-action {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 8px;
        border-radius: 10px;
        font-size: 0.78rem;
        font-weight: 600;
        cursor: pointer;
        border: none;
        transition: background 0.15s ease;
    }

    .m-card-action.primary {
        background: #eff6ff;
        color: var(--primary);
    }
    .m-card-action.primary:hover { background: #dbeafe; }

    .m-card-action.danger {
        background: #fef2f2;
        color: var(--danger);
    }
    .m-card-action.danger:hover { background: #fee2e2; }

    .m-card-action.success {
        background: #f0fdf4;
        color: var(--success);
    }
    .m-card-action.success:hover { background: #dcfce7; }

    /* Empty state */
    .m-card-empty {
        text-align: center;
        padding: 40px 20px;
        color: var(--text-muted);
    }

    .m-card-empty i {
        font-size: 2.5rem;
        opacity: 0.3;
        display: block;
        margin-bottom: 12px;
    }

    .m-card-empty p {
        font-size: 0.9rem;
    }
}


/* Badges / Status */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.status-booked { background-color: #dbeafe; color: #1e40af; }
.status-completed { background-color: #d1fae5; color: #065f46; }
.status-cancelled { background-color: #fee2e2; color: #991b1b; }
.status-paid { background-color: #d1fae5; color: #065f46; }
.status-pending { background-color: #fef3c7; color: #92400e; }

/* Action Icons */
.action-icons {
    display: flex;
    gap: 0.5rem;
}

.action-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: none;
}

.action-icon:hover {
    background-color: var(--bg-main);
    color: var(--primary);
}

.action-icon.delete:hover {
    color: var(--danger);
    background-color: #fee2e2;
}

/* Recent List */
.recent-list {
    list-style: none;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.recent-item:last-child {
    border-bottom: none;
}

.recent-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
}

.recent-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
}

.recent-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Controls */
.table-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-field {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    outline: none;
    font-size: 0.9rem;
}

.input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Progress bar */
.progress-container {
    width: 100%;
    background-color: var(--bg-main);
    border-radius: 10px;
    height: 8px;
    margin-top: 0.5rem;
}

.progress-bar {
    background-color: var(--primary);
    height: 100%;
    border-radius: 10px;
}

.report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.reports-toolbar {
    margin-bottom: 1.5rem;
}

.custom-fields-panel {
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 1rem 0;
    background: var(--bg-main);
    display: none;
}

.custom-fields-panel.active {
    display: block;
}

.template-builder {
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1rem;
    background: var(--bg-main);
    margin-bottom: 1rem;
}

.template-fields-list {
    margin-top: 1rem;
    display: grid;
    gap: 0.5rem;
}

.template-field-chip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    background: var(--bg-surface);
    font-size: 0.9rem;
}

.hidden-by-role {
    display: none !important;
}

/* Placeholder */
.placeholder-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-main);
    border: 2px dashed var(--border);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    color: var(--text-muted);
    text-align: center;
    height: 100%;
    min-height: 200px;
}

.placeholder-box i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

/* Calendar Toolbar */
.calendar-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calendar-nav h3 {
    min-width: 150px;
    text-align: center;
}

.calendar-views {
    display: flex;
    background-color: var(--bg-main);
    border-radius: var(--border-radius);
    padding: 0.25rem;
}

.btn-group {
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.btn-group.active {
    background-color: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}

/* Responsive */
@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .quick-actions-grid {
        grid-template-columns: 1fr 1fr;
    }
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .content-wrapper {
        padding: 2rem;
    }
    .topbar {
        padding: 0 2rem;
    }
    .search-container {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .sidebar {
        position: static;
        transform: translateX(0);
        box-shadow: none;
    }
    .mobile-menu-btn {
        display: none;
    }
    .sidebar-overlay {
        display: none !important;
    }
    .dashboard-grid {
        grid-template-columns: 2fr 1fr;
    }
    .search-container {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .topbar-actions .user-info {
        display: none;
    }
    .card-header h3 {
        font-size: 1rem;
    }
    .stat-details h3 {
        font-size: 1.25rem;
    }
    .modal {
        padding: 1.5rem;
        width: 95%;
    }
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center; justify-content: center;
    z-index: 1000;
}
.modal-overlay.active {
    display: flex;
}
.modal {
    background: var(--bg-surface);
    border-radius: var(--border-radius-lg);
    width: 95%; 
    max-width: 600px;
    max-height: 90vh;
    padding: 1.5rem;
    position: relative;
    box-shadow: var(--shadow-md);
    display: none;
    overflow-y: auto;
    animation: modalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
    .modal {
        padding: 2.5rem;
        width: 90%;
    }
}
@keyframes modalPop {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.modal h2 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}
.close-modal {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}
.close-modal:hover {
    color: var(--danger);
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.9rem; color: var(--text-main);
}
.form-group input, .form-group select {
    width: 100%; padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-textarea {
    width: 100%; padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    outline: none;
    resize: vertical;
    transition: var(--transition);
}
.form-row {
    display: grid; grid-template-columns: 1fr; gap: 1rem;
}
/* Workflow Stepper */
.workflow-stepper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.workflow-step {
    display: flex;
    gap: 15px;
    position: relative;
    padding-bottom: 20px;
}

.workflow-step:last-child {
    padding-bottom: 0;
}

.workflow-step::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 24px;
    width: 2px;
    height: calc(100% - 24px);
    background-color: #e2e8f0;
}

.workflow-step:last-child::before {
    display: none;
}

.step-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #f1f5f9;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #94a3b8;
    z-index: 1;
    flex-shrink: 0;
    transition: var(--transition);
}

.workflow-step.completed .step-indicator {
    background-color: var(--success);
    border-color: var(--success);
    color: white;
}

.workflow-step.current .step-indicator {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 2px;
}

.workflow-step.completed .step-title {
    color: var(--text-main);
}

.workflow-step.current .step-title {
    color: var(--primary);
}

.step-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (min-width: 640px) {
    .workflow-stepper {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .workflow-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        flex: 1;
        padding-bottom: 0;
    }
    
    .workflow-step::before {
        left: calc(50% + 12px);
        top: 11px;
        width: calc(100% - 24px);
        height: 2px;
    }
    
    .step-content {
        margin-top: 10px;
    }
}

/* Bottom Navigation */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border);
    justify-content: space-around;
    align-items: center;
    z-index: 1002;
    padding: 0 10px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 10px;
    border-radius: 12px;
}

.bottom-nav-item i {
    font-size: 1.25rem;
}

.bottom-nav-item.active {
    color: var(--primary);
    background-color: rgba(37, 99, 235, 0.05);
}

@media (max-width: 1023px) {
    .bottom-nav {
        display: flex;
    }
}

@media (max-width: 640px) {
    .sidebar {
        width: 80%;
    }
}
