/* 
   Janasia CRM Modern CSS System
   Brand Colors:
   - Primary: #5CAAC9 (Sky Blue)
   - Primary Dark: #438FA9
   - Primary Light: #EAF4F8
   - Neutral Dark: #1E293B (Slate 800)
   - Neutral Light: #F8FAFC (Slate 50)
   - Accent: #8B5CF6 (Purple)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #5CAAC9;
    --primary-hover: #438FA9;
    --primary-light: #EAF4F8;
    --dark: #1E293B;
    --dark-muted: #64748B;
    --light: #F8FAFC;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    --radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', 'Outfit', -apple-system, sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

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

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ----------------------------------------------------
   LOGIN PAGE STYLES
   ---------------------------------------------------- */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(circle at 10% 20%, rgba(92, 170, 201, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 45%),
                var(--light);
    position: relative;
}

.login-bg-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.login-blob {
    position: absolute;
    background: var(--primary);
    filter: blur(100px);
    opacity: 0.15;
    border-radius: 50%;
}

.login-blob-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    animation: blobFloat 20s infinite alternate;
}

.login-blob-2 {
    width: 350px;
    height: 350px;
    bottom: -100px;
    right: -100px;
    background: #8B5CF6;
    animation: blobFloat 25s infinite alternate-reverse 2s;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    z-index: 2;
    animation: fadeIn 0.6s ease-out;
}

.login-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    padding: 40px 35px;
    width: 100%;
}

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 35px;
}

.janasia-logo-img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
}

.login-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    color: var(--dark);
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

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

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark-muted);
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.input-container {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--white);
    color: var(--dark);
    transition: var(--transition);
    outline: none;
}

.input-container .form-input {
    padding-left: 45px;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(92, 170, 201, 0.15);
}

.form-input:focus + .input-icon {
    color: var(--primary);
}

.btn-primary {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, #438FA9 100%);
    border: none;
    border-radius: var(--radius);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(92, 170, 201, 0.2), 0 2px 4px -1px rgba(92, 170, 201, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4da0bd 0%, #397e96 100%);
    box-shadow: 0 6px 12px -1px rgba(92, 170, 201, 0.3), 0 4px 6px -1px rgba(92, 170, 201, 0.15);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.login-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 12px;
    color: var(--dark-muted);
}

.alert-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 20px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
    max-width: 350px;
}

.alert-toast.success {
    border-left-color: var(--success);
}

.alert-toast.danger {
    border-left-color: var(--danger);
}

.alert-toast-message {
    font-size: 13.5px;
    font-weight: 500;
}

/* ----------------------------------------------------
   DASHBOARD / SIDEBAR STYLES
   ---------------------------------------------------- */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--white);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-logo {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: center;
}

.sidebar-logo .janasia-logo-img {
    max-width: 220px;
}

.sidebar-profile {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--primary-light);
    margin: 15px 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(92, 170, 201, 0.15);
}

.profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #438FA9 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    box-shadow: var(--shadow-sm);
    font-family: 'Outfit', sans-serif;
}

.profile-info {
    flex: 1;
    overflow: hidden;
}

.profile-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.profile-role {
    font-size: 11px;
    font-weight: 500;
    color: var(--primary-hover);
    display: inline-block;
    background: rgba(92, 170, 201, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 2px;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 0 12px 20px 12px;
}

.menu-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark-muted);
    letter-spacing: 0.8px;
    padding: 15px 12px 8px 12px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--dark-muted);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.menu-item:hover {
    color: var(--primary-hover);
    background-color: var(--light);
}

.menu-item.active {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary) 0%, #438FA9 100%);
    box-shadow: 0 4px 10px -2px rgba(92, 170, 201, 0.3);
    font-weight: 600;
}

.menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

/* Main Content Area */
.main-wrapper {
    margin-left: 280px;
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    height: 70px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.nav-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-time {
    font-size: 13px;
    color: var(--dark-muted);
    font-weight: 500;
}

.btn-icon-only {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--dark-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon-only:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.btn-logout {
    padding: 8px 16px;
    border: 1px solid #FDA4AF;
    background: #FFF1F2;
    color: #E11D48;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-logout:hover {
    background: #FFE4E6;
    color: #BE123C;
    border-color: #F43F5E;
}

.content-body {
    padding: 30px;
    flex: 1;
    background-color: var(--light);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-panel.active {
    display: block;
}

/* ----------------------------------------------------
   DASHBOARD PANEL STYLES
   ---------------------------------------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    margin-bottom: 15px;
}

.stat-title {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--dark-muted);
    margin-bottom: 5px;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--dark);
}

.stat-trend {
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-trend.up {
    color: var(--success);
}

.stat-trend.down {
    color: var(--danger);
}

/* Grid Layouts for Panels */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.panel-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 25px;
    margin-bottom: 25px;
}

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

.panel-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Lists and Timeline */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-badge {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: 6px;
    flex-shrink: 0;
}

.activity-badge.login { background: var(--success); }
.activity-badge.logout { background: var(--danger); }
.activity-badge.update { background: var(--warning); }
.activity-badge.create { background: var(--info); }

.activity-details {
    flex: 1;
}

.activity-desc {
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
}

.activity-time-ip {
    font-size: 11px;
    color: var(--dark-muted);
    margin-top: 4px;
    display: flex;
    gap: 10px;
}

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

.table-modern {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
}

.table-modern th {
    padding: 12px 16px;
    background: var(--light);
    color: var(--dark-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.table-modern td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--dark);
}

.table-modern tr:hover td {
    background-color: rgba(92, 170, 201, 0.03);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    text-align: center;
}

.badge-admin { background: #EDE9FE; color: #6D28D9; }
.badge-sales { background: #DBEAFE; color: #1D4ED8; }
.badge-doctor { background: #E0F2FE; color: #0369A1; }
.badge-nurse { background: #D1FAE5; color: #047857; }

.badge-active { background: #D1FAE5; color: #065F46; }
.badge-inactive { background: #FEE2E2; color: #991B1B; }

/* Buttons & Controls */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-secondary {
    background: var(--light);
    border: 1px solid var(--border);
    color: var(--dark-muted);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-secondary:hover {
    border-color: var(--dark-muted);
    color: var(--dark);
}

.btn-danger-outline {
    background: transparent;
    border: 1px solid #FECDD3;
    color: #E11D48;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-danger-outline:hover {
    background: #FFF1F2;
    border-color: #E11D48;
}

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

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-backdrop.show {
    display: flex;
    opacity: 1;
}

.modal-card {
    background: var(--white);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-backdrop.show .modal-card {
    transform: translateY(0);
}

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

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16.5px;
    font-weight: 600;
    color: var(--dark);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-footer .btn-primary {
    width: 100%;
}


.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--dark-muted);
}

.modal-close:hover {
    color: var(--dark);
}

/* Search bar & Controls row */
.filter-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.search-input-wrapper {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark-muted);
}

.search-input {
    width: 100%;
    padding: 9px 12px 9px 36px;
    font-size: 13.5px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary);
}

.select-filter {
    padding: 9px 12px;
    font-size: 13.5px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    outline: none;
    background: var(--white);
    color: var(--dark);
    transition: var(--transition);
    cursor: pointer;
}

.select-filter:focus {
    border-color: var(--primary);
}

.filter-left {
    display: flex;
    gap: 10px;
    flex: 1;
    align-items: center;
}

/* Interactive elements in other Mock panels */
.patient-profile-card {
    display: flex;
    gap: 20px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.patient-profile-card:hover {
    border-color: var(--primary);
    background: var(--white);
}

.patient-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.patient-details h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    margin-bottom: 5px;
}

.patient-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--dark-muted);
}

/* Before/After Gallery styling */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.gallery-images {
    display: flex;
    height: 180px;
    background: #E2E8F0;
    position: relative;
}

.gallery-half {
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.gallery-half::after {
    content: attr(data-label);
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(15, 23, 42, 0.6);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.gallery-info {
    padding: 15px;
}

.gallery-title {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.gallery-desc {
    font-size: 12px;
    color: var(--dark-muted);
}

/* Quotation Invoice Creator Style */
.invoice-builder {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 25px;
}

@media (max-width: 900px) {
    .invoice-builder {
        grid-template-columns: 1fr;
    }
}

.invoice-summary {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13.5px;
}

.summary-row.total {
    border-top: 1.5px solid var(--border);
    padding-top: 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-hover);
    font-family: 'Outfit', sans-serif;
}

/* Calendar and scheduling layout */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 15px;
}

.calendar-day-header {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--dark-muted);
    text-transform: uppercase;
    padding-bottom: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    cursor: pointer;
}

.calendar-day:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.calendar-day.today {
    border-color: var(--primary);
    box-shadow: inset 0 0 0 2px rgba(92, 170, 201, 0.3);
}

.calendar-day-num {
    font-size: 12px;
    font-weight: 600;
}

.calendar-event {
    background: rgba(92, 170, 201, 0.15);
    color: var(--primary-hover);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 4px;
}
.calendar-event.surgery {
    background: rgba(139, 92, 246, 0.15);
    color: #7C3AED;
}

/* Check-in QR design */
.qr-scanner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    background: var(--light);
}

.qr-box {
    width: 200px;
    height: 200px;
    border: 4px solid var(--primary);
    border-radius: 12px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    box-shadow: var(--shadow);
    position: relative;
}

.qr-scan-line {
    position: absolute;
    width: calc(100% - 20px);
    height: 3px;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
    left: 10px;
    top: 10px;
    animation: qrScan 2s linear infinite;
}

@keyframes qrScan {
    0%, 100% { top: 10px; }
    50% { top: 180px; }
}

/* Digital Signature Pad styling */
.sig-pad {
    width: 100%;
    height: 150px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--light);
    cursor: crosshair;
}

/* Responsive sidebar */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-wrapper {
        margin-left: 0;
    }
}
