/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f8f8f8;
    --bg-section-alt: #f5f5f5;
    --text-primary: #1a1a1a;
    --text-secondary: #2d2d2d;
    --text-muted: #666666;
    --border-color: #e5e5e5;
    --border-hover: #d5d5d5;
    --accent-subtle: #e8e8e8;
    /* New gradient theme variables */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hover: linear-gradient(135deg, #5568d3 0%, #63408a 100%);
    --gradient-soft: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    --accent-blue: #667eea;
    --accent-purple: #764ba2;
    --accent-red: #EF4444;
    --accent-green: #10B981;
    --accent-yellow: #F59E0B;
    --text-primary-new: #0F172A;
    --text-secondary-new: #64748B;
    --text-tertiary: #94A3B8;
    --border-gray: #E2E8F0;
    --off-white: #F8FAFC;
    --white: #FFFFFF;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 0;
    position: relative;
}

/* App Layout adjustments */
.app-layout {
    min-height: 100vh;
}

.main-content {
    padding: 20px;
    min-width: 0;
    overflow-x: auto;
}

/* Dashboard Container */
.dashboard-container {
    max-width: 100%;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    overflow: hidden;
    min-width: 0;
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Header */
.dashboard-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    color: var(--text-primary);
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid var(--border-gray);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.page-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-gray);
    padding: 20px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: padding 0.3s ease-in-out;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.business-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary-new);
    text-transform: lowercase;
    margin: 0;
}

.dashboard-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
}

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

.user-role {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

/* Profile Dropdown Styles */
.profile-container {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--accent-subtle) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.profile-avatar:hover {
    background: linear-gradient(135deg, var(--border-hover) 0%, var(--bg-tertiary) 100%);
    border-color: var(--border-hover);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-avatar:focus {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

.profile-avatar span {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0.2s ease-out;
    z-index: 1000;
    overflow: hidden;
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-item {
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-dropdown-item:hover {
    background-color: var(--bg-secondary);
}

.profile-dropdown-item:active {
    background-color: var(--bg-tertiary);
}

.profile-dropdown-item span {
    font-weight: 500;
}

.profile-dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 4px 0;
}

.logout-btn {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-out;
    font-family: inherit;
}

.logout-btn:hover {
    background: var(--accent-subtle);
    transform: scale(1.03);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Navigation Tabs - Removed (now in sidebar) */
/* These styles are kept for backwards compatibility but tabs are moved to sidebar */
.nav-tabs {
    display: none; /* Hide old nav tabs - navigation is now in sidebar */
}

.nav-tab {
    display: none;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s ease-out;
    font-family: inherit;
    text-transform: none;
    letter-spacing: normal;
}

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

.btn-primary:hover {
    background: var(--text-secondary);
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

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

.btn-secondary:hover {
    background: var(--accent-subtle);
    transform: scale(1.03);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
    transform: scale(1.03);
}

.btn-edit {
    position: relative;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    background: var(--gradient-primary);
    color: white;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(102, 126, 234, 0.2);
    overflow: hidden;
    margin-right: 8px;
    font-family: inherit;
}

.btn-edit:hover {
    background: var(--gradient-hover);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

.btn-delete {
    position: relative;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border-gray);
    background: white;
    color: var(--text-secondary-new);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    font-family: inherit;
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.05);
    border-color: var(--accent-red);
    color: var(--accent-red);
    transform: translateY(-1px);
}

/* Customer Name with Avatar */
.customer-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-avatar {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

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

/* Page Title Area */
.page-title-area {
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    margin-top: 32px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary-new);
    letter-spacing: -0.02em;
}

.title-actions {
    display: flex;
    gap: 12px;
}

.btn-primary-large {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: var(--gradient-primary);
    color: white;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    font-family: inherit;
}

.btn-primary-large:hover {
    background: var(--gradient-hover);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

/* Statistics Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px 40px;
    background: var(--bg-secondary);
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.2);
}

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

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary-new);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-soft);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-value {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-primary-new);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-primary-new);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-trend {
    font-size: 13px;
    color: var(--accent-green);
    font-weight: 600;
}

/* Filters */
.filters-container {
    padding: 25px 40px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.search-box {
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 14px 18px 14px 46px;
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    font-size: 14px;
    background: var(--off-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 16px center;
    transition: all 0.2s ease;
    font-family: inherit;
    color: var(--text-primary-new);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.08);
    background-color: var(--white);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.filter-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select,
.filter-date {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9375rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.2s ease-out;
    font-family: inherit;
}

.filter-select:focus,
.filter-date:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.filter-date {
    cursor: text;
}

/* Table */
.table-container {
    padding: 0;
    overflow-x: auto;
    background: var(--bg-primary);
    border-radius: 16px;
    border: 1px solid var(--border-gray);
    margin: 0 40px 40px 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.table-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-gray);
    background: var(--off-white);
}

.table-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary-new);
    margin: 0;
}

.table-scroll {
    overflow-x: auto;
    padding: 0 24px;
}

.table-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-gray);
    background: var(--off-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.pagination {
    display: flex;
    gap: 6px;
}

.page-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-gray);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary-new);
    font-family: inherit;
}

.page-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.page-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

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

.appointments-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
}

.appointments-table thead {
    background: var(--off-white);
}

.appointments-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary-new);
    border-bottom: 2px solid var(--border-gray);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.appointments-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 25px;
}

.appointments-table th.sortable:hover {
    background: var(--bg-tertiary);
}

.appointments-table th.sortable::after {
    content: ' ↕';
    position: absolute;
    right: 8px;
    opacity: 0.5;
}

.appointments-table th.sortable.sort-asc::after {
    content: ' ↑';
    opacity: 1;
    color: var(--text-primary);
}

.appointments-table th.sortable.sort-desc::after {
    content: ' ↓';
    opacity: 1;
    color: var(--text-primary);
}

.appointments-table tbody tr {
    border-bottom: 1px solid var(--border-gray);
    transition: background-color 0.2s ease-out;
}

.appointments-table tbody tr.appointment-row {
    cursor: pointer;
}

.appointments-table tbody tr.appointment-row:hover {
    background: #F5F5F5;
}

.appointments-table tbody tr.appointment-row:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: -2px;
}

.appointments-table tbody tr:nth-child(even) {
    background: var(--off-white);
}

.appointments-table tbody tr:nth-child(even).appointment-row:hover {
    background: #F5F5F5;
}

.appointments-table td {
    padding: 16px 20px;
    font-size: 0.9375rem;
    color: var(--text-secondary-new);
}

.appointments-table td.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-style: italic;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-badge.confirmed,
.status-confirmed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.status-badge.confirmed::before,
.status-confirmed::before {
    background: var(--accent-green);
}

.status-badge.pending,
.status-pending {
    background: rgba(251, 191, 36, 0.1);
    color: var(--accent-yellow);
}

.status-badge.pending::before,
.status-pending::before {
    background: var(--accent-yellow);
}

.status-badge.cancelled,
.status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

.status-badge.cancelled::before,
.status-cancelled::before {
    background: var(--accent-red);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    max-width: 600px;
    width: 90%;
    /* Removed max-height and overflow-y to allow natural sizing - matches staff modal approach */
    animation: slideUp 0.3s ease;
}

.modal-small {
    max-width: 400px;
}

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

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

.modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.close {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease-out;
    background: none;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-body {
    padding: 25px 30px;
}

.modal-form {
    padding: 25px 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9375rem;
    transition: border-color 0.2s ease-out;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
}

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

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.delete-warning {
    color: #dc2626;
    font-weight: 500;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 14px;
    }

    .dashboard-container {
        border-radius: 8px;
        margin: 0;
        width: 100%;
    }

    .main-content {
        padding: 10px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }

    .page-header {
        padding: 20px;
    }

    .header-left {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .page-title-area {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        padding: 0 10px;
        margin-top: 24px;
    }

    .stats-container {
        padding: 16px 10px;
    }

    .filters-container {
        padding: 20px 10px;
    }

    .table-container {
        margin: 0 10px 20px 10px;
    }

    .page-title {
        font-size: 24px;
    }

    .dashboard-header h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
    }

    .profile-dropdown {
        right: 0;
        left: auto;
        min-width: 180px;
        max-width: calc(100vw - 20px);
    }

    .profile-avatar {
        min-width: 44px;
        min-height: 44px;
    }

    .nav-tabs {
        flex-wrap: wrap;
        padding: 16px 20px;
        gap: 8px;
    }

    .nav-tab {
        padding: 10px 16px;
        font-size: 0.875rem;
        min-height: 44px;
        flex: 1 1 auto;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 16px 20px;
        gap: 12px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .filters-container {
        padding: 20px;
    }

    .nav-tabs {
        flex-wrap: wrap;
    }

    .search-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 16px;
        min-height: 44px;
    }

    .filter-group {
        flex-direction: column;
        gap: 12px;
    }

    .filter-select,
    .filter-date {
        width: 100%;
        padding: 12px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
    }

    .table-container {
        margin: 0 20px 20px 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }

    .table-header,
    .table-footer {
        padding: 12px 16px;
    }

    .table-scroll {
        padding: 0 16px;
    }

    .table-container::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 20px;
        background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.05));
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .table-container.scrollable::after {
        opacity: 1;
    }

    .appointments-table {
        font-size: 0.875rem;
        min-width: 800px;
    }

    .appointments-table th,
    .appointments-table td {
        padding: 10px 8px;
        white-space: nowrap;
    }

    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 20px;
        touch-action: manipulation;
    }

    .btn-edit,
    .btn-delete {
        padding: 8px 12px;
        min-height: 36px;
        font-size: 0.8125rem;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
        /* Removed max-height and overflow-y to allow natural sizing - matches staff modal approach */
    }

    .modal-header {
        padding: 20px;
    }

    .modal-form {
        padding: 20px;
    }

    .form-group input,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 16px;
        min-height: 44px;
    }

    .form-actions {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .form-actions .btn {
        width: 100%;
    }

    .clients-grid {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }

    .client-card {
        padding: 20px;
    }

    .client-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px 20px;
    }

    .login-container {
        padding: 32px 24px;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    .dashboard-container {
        border-radius: 0;
    }

    .dashboard-header {
        padding: 16px;
    }

    .dashboard-header h1 {
        font-size: 1.25rem;
    }

    .profile-dropdown {
        right: 0;
        left: auto;
        min-width: 160px;
        max-width: calc(100vw - 10px);
    }

    .stats-container {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 10px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .nav-tabs {
        padding: 12px 16px;
    }

    .nav-tab {
        padding: 8px 12px;
        font-size: 0.8125rem;
    }

    .filters-container {
        padding: 16px;
    }

    .table-container {
        padding: 8px;
    }

    .appointments-table {
        font-size: 0.8125rem;
        min-width: 700px;
    }

    .appointments-table th,
    .appointments-table td {
        padding: 8px 5px;
        font-size: 0.75rem;
    }

    .btn-edit,
    .btn-delete {
        padding: 6px 10px;
        font-size: 0.6875rem;
        min-height: 32px;
    }

    .modal-content {
        width: 98%;
        margin: 10px;
        /* Removed max-height to allow natural sizing - matches staff modal approach */
        border-radius: 8px;
    }

    .modal-header {
        padding: 16px;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    .modal-form {
        padding: 16px;
    }

    .close {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }

    .clients-grid {
        padding: 12px;
    }

    .client-card {
        padding: 16px;
    }

    .client-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .login-container {
        padding: 24px 20px;
        margin: 10px;
    }

    .login-logo h1 {
        font-size: 1.5rem;
    }

    .usage-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    left: 24px;
    max-width: calc(100% - 48px);
    padding: 14px 24px;
    background: var(--text-primary);
    border-radius: 8px;
    color: var(--bg-primary);
    font-weight: 500;
    font-size: 0.875rem;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    min-height: 44px;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .toast {
        right: 16px;
        left: 16px;
        max-width: calc(100% - 32px);
        bottom: 16px;
    }
}

@media (max-width: 480px) {
    .toast {
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
        bottom: 10px;
        padding: 12px 20px;
        font-size: 0.8125rem;
    }
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    background: #10b981;
    color: white;
}

.toast-error {
    background: #dc2626;
    color: white;
}

.toast-info {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.toast-warning {
    background: #f59e0b;
    color: white;
}

/* Client Cards (Admin Dashboard) */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding: 24px;
    background: var(--bg-secondary);
}

.client-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.client-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.client-name {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.client-email {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.client-status {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.client-status.active {
    background: #d1fae5;
    color: #065f46;
}

.client-status.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.client-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.client-stat {
    text-align: center;
}

.client-stat-value {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
}

.client-stat-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.client-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    align-items: flex-start;
}

.client-actions .btn {
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-calendar-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.875rem;
}

.btn-preview {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-preview:hover {
    background: var(--text-secondary);
    transform: scale(1.03);
}

.calendar-connected {
    color: #10b981;
}

.calendar-disconnected {
    color: var(--text-muted);
}

/* Client Search Styles */
.clients-search-container {
    padding: 20px 24px 0 24px;
    background: var(--bg-secondary);
}

.client-search-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    font-size: 0.9375rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.2s ease-out;
}

.client-search-input:focus {
    outline: none;
    border-color: var(--border-hover);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.client-search-input::placeholder {
    color: var(--text-muted);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 48px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes rainbowShadow {
    0% {
        box-shadow: 
            0 4px 20px rgba(255, 0, 128, 0.15),
            0 4px 20px rgba(255, 128, 0, 0.12),
            0 4px 20px rgba(255, 255, 0, 0.10),
            0 4px 20px rgba(128, 255, 0, 0.08),
            0 4px 20px rgba(0, 255, 128, 0.08),
            0 8px 24px rgba(0, 0, 0, 0.08);
    }
    33% {
        box-shadow: 
            0 4px 20px rgba(255, 128, 0, 0.15),
            0 4px 20px rgba(255, 255, 0, 0.12),
            0 4px 20px rgba(128, 255, 0, 0.10),
            0 4px 20px rgba(0, 255, 128, 0.08),
            0 4px 20px rgba(0, 255, 255, 0.08),
            0 8px 24px rgba(0, 0, 0, 0.08);
    }
    66% {
        box-shadow: 
            0 4px 20px rgba(128, 255, 0, 0.15),
            0 4px 20px rgba(0, 255, 128, 0.12),
            0 4px 20px rgba(0, 255, 255, 0.10),
            0 4px 20px rgba(0, 128, 255, 0.08),
            0 4px 20px rgba(128, 0, 255, 0.08),
            0 8px 24px rgba(0, 0, 0, 0.08);
    }
    100% {
        box-shadow: 
            0 4px 20px rgba(255, 0, 128, 0.15),
            0 4px 20px rgba(255, 128, 0, 0.12),
            0 4px 20px rgba(255, 255, 0, 0.10),
            0 4px 20px rgba(128, 255, 0, 0.08),
            0 4px 20px rgba(0, 255, 128, 0.08),
            0 8px 24px rgba(0, 0, 0, 0.08);
    }
}

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

.section-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    position: relative;
    z-index: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 48px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    animation: rainbowShadow 4s ease-in-out infinite;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo-icon {
    width: 64px;
    height: 64px;
    background: var(--text-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: var(--bg-primary);
}

.login-logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.login-logo p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.login-divider span {
    padding: 0 16px;
}

.login-toggle {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.login-toggle a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease-out;
}

.login-toggle a:hover {
    color: var(--text-secondary);
}

.login-error,
.login-success {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 20px;
    display: none;
}

.login-error.show {
    display: block;
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.login-success.show {
    display: block;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.login-loading {
    pointer-events: none;
    opacity: 0.7;
}

.login-loading .btn-primary::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    display: inline-block;
}

.btn-google {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
}

.btn-google:hover {
    background: var(--accent-subtle);
    border-color: var(--border-hover);
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-google svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Calendar View Styles */
.calendar-view {
    padding: 30px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.calendar-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    min-width: 0;
}

.calendar-day-header {
    background: var(--bg-section-alt);
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-day {
    background: var(--bg-primary);
    min-height: 100px;
    padding: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.calendar-day:hover {
    background: var(--bg-tertiary);
}

.calendar-day.other-month {
    background: var(--bg-secondary);
    color: var(--text-muted);
    opacity: 0.5;
}

.calendar-day.today {
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid #6366f1;
}

.calendar-day-number {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.calendar-appointments {
    margin-top: 4px;
}

.calendar-appointment {
    background: #6366f1;
    color: white;
    padding: 2px 6px;
    margin: 2px 0;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.calendar-appointment:hover {
    background: #4f46e5;
}

.calendar-appointment.confirmed {
    background: #6366f1;
}

.calendar-appointment.pending {
    background: #f59e0b;
}

.calendar-appointment.cancelled {
    background: #ef4444;
    opacity: 0.7;
}

.calendar-day.has-appointments {
    font-weight: 600;
}

/* Exception styling */
.calendar-day.exception-closed {
    background: rgba(239, 68, 68, 0.1) !important;
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.calendar-day.exception-closed:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.5);
}

.calendar-day.exception-custom-hours {
    background: rgba(251, 191, 36, 0.1) !important;
    border: 2px solid rgba(251, 191, 36, 0.3);
}

.calendar-day.exception-custom-hours:hover {
    background: rgba(251, 191, 36, 0.15) !important;
    border-color: rgba(251, 191, 36, 0.5);
}

.exception-badge {
    display: inline-block;
    font-size: 0.6rem;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    margin-left: 4px;
}

.exception-badge-closed {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.exception-badge-custom {
    background: rgba(251, 191, 36, 0.2);
    color: #d97706;
}

/* Calendar View Toggle Buttons */
.calendar-view-toggle {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 0 20px;
}

.btn-view-toggle {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-view-toggle:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
}

.btn-view-toggle.active {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

/* Calendar More Button */
.calendar-more-btn {
    cursor: pointer !important;
    transition: background-color 0.2s;
}

.calendar-more-btn:hover {
    background: var(--text-secondary) !important;
    color: white;
}

/* Weekly View Styles */
.calendar-grid.weekly-view {
    grid-template-columns: repeat(7, 1fr);
}

.calendar-grid.weekly-view .calendar-day {
    min-height: 200px;
}

/* Daily View Styles */
.calendar-grid.daily-view {
    display: block;
    max-width: 800px;
    margin: 0 auto;
    background: transparent;
    border: none;
}

.daily-time-slot {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    padding: 12px;
    min-height: 80px;
}

.daily-time-label {
    width: 100px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.daily-appointments {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.daily-appointment {
    background: #6366f1;
    color: white;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.daily-appointment:hover {
    background: #4f46e5;
}

.daily-appt-time {
    font-weight: 600;
    font-size: 0.875rem;
}

.daily-appt-name {
    font-size: 1rem;
    font-weight: 500;
}

.daily-appt-service {
    font-size: 0.875rem;
    opacity: 0.9;
}

.daily-appointment-empty {
    color: var(--text-muted);
    font-style: italic;
    padding: 8px;
    font-size: 0.875rem;
}

/* Mobile Calendar Optimizations */
@media (max-width: 768px) {
    .calendar-view {
        padding: 16px;
    }

    .calendar-header {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
        text-align: center;
    }

    .calendar-header h2 {
        font-size: 1.25rem;
        order: 2;
    }

    .calendar-header button {
        min-height: 44px;
        padding: 10px 16px;
        font-size: 0.875rem;
    }

    .calendar-header #prevMonthBtn {
        order: 1;
    }

    .calendar-header #nextMonthBtn {
        order: 3;
    }

    .calendar-grid {
        gap: 2px;
        border-radius: 4px;
    }

    .calendar-day-header {
        padding: 8px 4px;
        font-size: 0.75rem;
        letter-spacing: 0;
    }

    .calendar-day {
        min-height: 80px;
        padding: 6px 4px;
    }

    .calendar-day-number {
        font-size: 0.8125rem;
        margin-bottom: 2px;
    }

    .calendar-appointment {
        font-size: 0.6875rem;
        padding: 3px 4px;
        margin: 1px 0;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .calendar-view {
        padding: 12px;
    }

    .calendar-header {
        padding: 12px;
        gap: 12px;
    }

    .calendar-header h2 {
        font-size: 1.1rem;
    }

    .calendar-header button {
        font-size: 0.8125rem;
        padding: 8px 12px;
        flex: 1;
        max-width: 45%;
    }

    .calendar-day-header {
        padding: 6px 2px;
        font-size: 0.6875rem;
    }

    .calendar-day {
        min-height: 70px;
        padding: 4px 2px;
    }

    .calendar-day-number {
        font-size: 0.75rem;
    }

    .calendar-appointment {
        font-size: 0.625rem;
        padding: 2px 3px;
        line-height: 1.1;
    }

    /* Show only time and name on very small screens */
    .calendar-appointment {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Appointment Details Drawer */
.appointment-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.appointment-drawer.open {
    opacity: 1;
    pointer-events: auto;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background: #FFFFFF;
    box-shadow: -4px 0 6px -1px rgba(0, 0, 0, 0.1), -10px 0 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.appointment-drawer.open .drawer-content {
    transform: translateX(0);
}

.drawer-header {
    padding: 24px;
    border-bottom: 1px solid #E5E7EB;
    background: #FAFAFA;
}

.drawer-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.drawer-customer-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.drawer-customer-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 20px;
    flex-shrink: 0;
}

.drawer-customer-name {
    font-size: 24px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.drawer-client-since {
    font-size: 14px;
    color: #666666;
    margin: 0;
}

.drawer-close-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.drawer-close-btn:hover {
    background: #F5F5F5;
    color: #1A1A1A;
}

.drawer-message-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #1A1A1A;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.drawer-message-btn:hover {
    background: #F5F5F5;
    border-color: #D1D5DB;
}

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

.drawer-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.drawer-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 16px 0;
}

.drawer-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid #F5F5F5;
}

.drawer-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.drawer-info-label {
    font-size: 14px;
    color: #666666;
    font-weight: 500;
}

.drawer-info-value {
    font-size: 14px;
    color: #1A1A1A;
    font-weight: 400;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.drawer-notes {
    font-size: 14px;
    color: #1A1A1A;
    line-height: 1.6;
    margin: 0;
}

.drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid #E5E7EB;
    background: #FAFAFA;
    display: flex;
    gap: 12px;
}

.drawer-action-btn {
    flex: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .drawer-content {
        max-width: 100%;
    }
}
