/* Google Workspace Design System */
:root {
    --primary-color: #1a73e8;
    --primary-hover: #1765cc;
    --primary-light: #e8f0fe;
    --success-color: #1e8e3e;
    --success-light: #e6f4ea;
    --warning-color: #f9ab00;
    --warning-light: #fef7e0;
    --error-color: #d93025;
    --error-light: #fce8e6;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --border-color: #dadce0;
    --hover-bg: #f1f3f4;
    --surface: #ffffff;
    --background: #f8f9fa;
    --shadow-1: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
    --shadow-2: 0 1px 3px 0 rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15);
    --shadow-3: 0 4px 6px 0 rgba(60,64,67,.3), 0 8px 16px 6px rgba(60,64,67,.15);
    --font-google: 'Google Sans', 'Roboto', Arial, sans-serif;
    --sidebar-width: 256px;
    --sidebar-mini-width: 72px;
    --topnav-height: 64px;
}

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

body {
    font-family: var(--font-google);
    background: var(--background);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topnav-height);
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    gap: 16px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.nav-center {
    flex: 1;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.global-search {
    width: 100%;
    position: relative;
}

.global-search input {
    width: 100%;
    padding: 10px 16px 10px 48px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    font-size: 14px;
    background: var(--background);
    transition: all 0.2s;
}

.global-search input:focus {
    outline: none;
    background: var(--surface);
    box-shadow: var(--shadow-1);
}

.global-search .material-icons {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 20px;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: background 0.2s;
}

.menu-toggle:hover {
    background: var(--hover-bg);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: background 0.2s;
}

.icon-btn:hover {
    background: var(--hover-bg);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.user-profile:hover {
    background: var(--hover-bg);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.user-name {
    font-weight: 500;
    color: var(--text-primary);
}

.user-type-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    background: var(--primary-light);
    color: var(--primary-color);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: var(--topnav-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--topnav-height));
    background: var(--surface);
    border-right: 1px solid var(--border-color);
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 999;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

/* Smooth scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Mini sidebar state (desktop only) */
.sidebar.mini {
    width: var(--sidebar-mini-width);
}

.sidebar.mini .nav-item span:not(.material-icons),
.sidebar.mini .nav-group-header span:not(.material-icons),
.sidebar.mini .user-type-toggle span:not(.material-icons) {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar.mini .nav-item,
.sidebar.mini .nav-group-header {
    justify-content: center;
    padding: 12px;
}

.sidebar.mini .nav-group-items {
    display: none;
}

.sidebar.mini .sidebar-footer {
    padding: 8px;
}

.sidebar.mini .user-type-toggle {
    justify-content: center;
    padding: 12px;
}

/* Mobile drawer state */
@media (max-width: 1023px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
        width: var(--sidebar-width);
    }
    
    .sidebar.open {
        transform: translateX(0);
        box-shadow: var(--shadow-3);
    }
    
    /* Overlay for mobile drawer */
    .sidebar-overlay {
        position: fixed;
        top: var(--topnav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        display: none;
        transition: opacity 0.3s;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
}

.sidebar-nav {
    flex: 1;
    padding: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.nav-item:hover {
    background: var(--hover-bg);
}

.nav-item.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.nav-item .material-icons {
    font-size: 20px;
    flex-shrink: 0;
}

.nav-item span:not(.material-icons) {
    transition: opacity 0.2s, width 0.2s;
}

.nav-group {
    margin-bottom: 8px;
}

.nav-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 500;
    white-space: nowrap;
}

.nav-group-header:hover {
    background: var(--hover-bg);
}

.nav-group-header .material-icons {
    flex-shrink: 0;
}

.nav-group-header .expand-icon {
    margin-left: auto;
    font-size: 20px;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.nav-group.expanded .expand-icon {
    transform: rotate(180deg);
}

.nav-group-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 32px;
}

.nav-group.expanded .nav-group-items {
    max-height: 500px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.user-type-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.user-type-toggle:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
}

/* Main Content */
.main-content {
    margin-top: var(--topnav-height);
    margin-left: var(--sidebar-width);
    padding: 16px;
    min-height: calc(100vh - var(--topnav-height));
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main content with mini sidebar */
.main-content.sidebar-mini {
    margin-left: var(--sidebar-mini-width);
}

/* Main content on mobile (no sidebar margin) */
@media (max-width: 1023px) {
    .main-content {
        margin-left: 0;
    }
}

/* Page Header */
.page-header {
    margin-bottom: 16px;
}

.page-title {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.page-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Cards */
.card {
    background: var(--surface);
    border-radius: 8px;
    box-shadow: var(--shadow-1);
    padding: 16px;
    margin-bottom: 12px;
}

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

.card-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.stat-card {
    background: var(--surface);
    border-radius: 8px;
    box-shadow: var(--shadow-1);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-value {
    font-size: 28px;
    font-weight: 400;
    color: var(--text-primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.stat-icon.primary {
    background: var(--primary-light);
    color: var(--primary-color);
}

.stat-icon.success {
    background: var(--success-light);
    color: var(--success-color);
}

.stat-icon.warning {
    background: var(--warning-light);
    color: var(--warning-color);
}

.stat-icon.error {
    background: var(--error-light);
    color: var(--error-color);
}

/* Buttons */
.btn {
    padding: 10px 24px;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-google);
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-2);
}

.btn-secondary {
    background: var(--surface);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--hover-bg);
}

.btn-icon {
    padding: 8px;
    min-width: auto;
}

/* Form Elements */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    font-family: var(--font-google);
    color: var(--text-primary);
    background: var(--surface);
    transition: all 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-help {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Table */
.table-container {
    background: var(--surface);
    border-radius: 8px;
    box-shadow: var(--shadow-1);
    overflow: hidden;
}

.table-toolbar {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.table-search {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    position: relative;
}

.table-search input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}

.table-search .material-icons {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 20px;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: var(--hover-bg);
}

.table-wrapper {
    overflow-x: auto;
}

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

thead {
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
}

th {
    padding: 10px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-primary);
}

tr:hover {
    background: var(--hover-bg);
    cursor: pointer;
}

.table-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.table-link:hover {
    text-decoration: underline;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active {
    background: var(--success-light);
    color: var(--success-color);
}

.status-badge.inactive {
    background: var(--error-light);
    color: var(--error-color);
}

.status-badge.pending {
    background: var(--warning-light);
    color: var(--warning-color);
}

.status-badge.open {
    background: var(--primary-light);
    color: var(--primary-color);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

.pagination-info {
    font-size: 14px;
    color: var(--text-secondary);
}

.pagination-controls {
    display: flex;
    gap: 4px;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: none;
    background: none;
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s;
}

.page-btn:hover {
    background: var(--hover-bg);
}

.page-btn.active {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 500;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Offcanvas */
.offcanvas {
    position: fixed;
    top: var(--topnav-height);
    right: -600px;
    width: 600px;
    height: calc(100vh - var(--topnav-height));
    background: var(--surface);
    box-shadow: var(--shadow-3);
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.offcanvas.open {
    right: 0;
}

@media (max-width: 1023px) {
    .offcanvas {
        width: 100%;
        right: -100%;
    }
}

.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.offcanvas-header h3 {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
}

.offcanvas-actions {
    display: flex;
    gap: 4px;
}

.offcanvas-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Full Page Modal */
.fullpage-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    z-index: 1002;
    display: none;
    flex-direction: column;
}

.fullpage-modal.open {
    display: flex;
}

.fullpage-header {
    height: 64px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.fullpage-header h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-primary);
}

.fullpage-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Toast */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    min-width: 300px;
    background: var(--surface);
    border-radius: 8px;
    box-shadow: var(--shadow-3);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid var(--success-color);
}

.toast.error {
    border-left: 4px solid var(--error-color);
}

.toast.warning {
    border-left: 4px solid var(--warning-color);
}

.toast.info {
    border-left: 4px solid var(--primary-color);
}

.toast-icon {
    flex-shrink: 0;
}

.toast-icon.success {
    color: var(--success-color);
}

.toast-icon.error {
    color: var(--error-color);
}

.toast-icon.warning {
    color: var(--warning-color);
}

.toast-icon.info {
    color: var(--primary-color);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.toast-message {
    font-size: 13px;
    color: var(--text-secondary);
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
}

/* File Upload */
.file-upload {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.file-upload:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.file-upload-icon {
    font-size: 48px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.file-upload-text {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.file-upload-hint {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
}

.tab {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

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

.tab.active {
    color: var(--primary-color);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

/* Details Section */
.detail-group {
    margin-bottom: 24px;
}

.detail-group-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.detail-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-label {
    flex: 0 0 200px;
    font-size: 14px;
    color: var(--text-secondary);
}

.detail-value {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-center {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .nav-center {
        display: none;
    }
    
    .logo-text {
        display: none;
    }
}

@media (max-width: 640px) {
    .top-nav {
        padding: 0 8px;
    }
    
    .user-name {
        display: none;
    }
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 64px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Order Timeline */
.order-timeline {
    position: relative;
    padding-left: 40px;
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 8px;
    bottom: -8px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border-color);
}

.timeline-dot.completed {
    background: var(--success-color);
    border-color: var(--success-color);
}

.timeline-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.timeline-content h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.timeline-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-top: 4px;
}

.timeline-status.completed {
    background: var(--success-light);
    color: var(--success-color);
}

.timeline-status.in-progress {
    background: var(--warning-light);
    color: var(--warning-color);
}

.timeline-status.pending {
    background: var(--border-color);
    color: var(--text-secondary);
}

/* Filter Dropdown */
.filter-dropdown {
    position: relative;
    display: inline-block;
}

.filter-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: var(--surface);
    min-width: 200px;
    box-shadow: var(--shadow-3);
    border-radius: 8px;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.filter-dropdown-content.show {
    display: block;
}

.filter-option {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-option:hover {
    background: var(--hover-bg);
}

.filter-option input[type="checkbox"] {
    cursor: pointer;
}

.filter-option.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--surface);
    border-radius: 8px;
    box-shadow: var(--shadow-3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
