.reg-lock-form-container textarea.form-control-modern {
    resize: vertical;
    min-height: 80px;
}

/* Additional mobile improvements for admin header */
@media (max-width: 768px) {
    /* Admin avatar smaller on mobile */
    #admin-dashboard .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }
    
    /* Admin header text adjustments */
    #admin-dashboard .profile-name {
        font-size: 18px !important;
    }
    
    #admin-dashboard .profile-role,
    #admin-dashboard .profile-meta {
        font-size: 13px !important;
    }
    
    /* Compact admin stats grid on mobile */
    .admin-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .admin-stat-box {
        padding: 1rem;
    }
    
    .admin-stat-box .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .admin-stat-box .stat-number {
        font-size: 24px;
    }
    
    .admin-stat-box .stat-text {
        font-size: 12px;
    }
}

/* Registration Lock Item */


:root {
    --primary-color: #655E7A;
    --secondary-color: #f3f6f8;
    --text-dark: #000000;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --success-color: #655E7A;
    --hover-bg: #f3f2ef;
    --card-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.1);
    --nav-height: 52px;
    --profile-header-height: 280px;
}

body {
    background: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.admin-card {
    background: #f8fbff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(101, 94, 122, 0.08);
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(101, 94, 122, 0.1);
}

.admin-card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #655E7A 0%, #7d6b94 100%);
    color: white;
}

/* Full Width Profile Layout */
.profile-full-page {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(to bottom, #655E7A 0%, #655E7A 300px, #f0f4f8 300px, #f0f4f8 100%);
}

/* Profile Container */
.profile-container {
    max-width: 1128px;
    margin: 0 auto;
    padding: 0;
}

/* Profile Header Card */
.profile-header-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    margin-bottom: 0;
    width: 100%;
    position: relative;
}

.profile-cover {
    height: 0px;
    background: transparent;
    position: relative;
    display: none;
}

.profile-info-wrapper {
    padding: 0 2rem 1rem;
    position: relative;
    max-width: 1128px;
    margin: 0 auto;
    z-index: 1;
}

.profile-top-section {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 0px;
    padding-top: 2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.profile-avatar {
    width: 152px;
    height: 152px;
    border-radius: 50%;
    border: 5px solid white;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.profile-header-content {
    flex: 1;
    padding-top: 0px;
    position: relative;
    z-index: 2;
}

.profile-name {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,.2);
}

.profile-role {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 3px rgba(0,0,0,.35);
    font-weight: 500;
}

.profile-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 0.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,.3);
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding: 1rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1.25rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
    line-height: 1.1;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Profile Navigation Tabs */
.profile-nav-tabs {
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: var(--nav-height);
    z-index: 100;
    box-shadow: 0 2px 8px rgba(101, 94, 122, 0.1);
}

.profile-nav-tabs-inner {
    max-width: 1128px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 0;
}

.profile-nav-tab {
    padding: 0.85rem 1rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    color: var(--text-light);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    position: relative;
    white-space: nowrap;
}

.profile-nav-tab:hover {
    color: var(--text-dark);
    background-color: var(--hover-bg);
}

.profile-nav-tab.active {
    color: var(--success-color);
    border-bottom-color: var(--success-color);
}

.profile-nav-tab i {
    font-size: 15px;
}

/* Tab Content Area */
.profile-tab-content {
    max-width: 1128px;
    margin: 1.5rem auto;
    padding: 1.5rem 2rem 2rem;
}

.profile-tab-pane {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.profile-tab-pane.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    animation: fadeIn 0.3s ease-in;
}

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

/* Ensure calendar and other elements respect tab visibility */
.profile-tab-pane:not(.active) #calendar,
.profile-tab-pane:not(.active) #booking-list-modern,
.profile-tab-pane:not(.active) #houses-list-modern,
.profile-tab-pane:not(.active) #recent-bookings-list {
    display: none !important;
    visibility: hidden !important;
}

/* Modern Cards */
.modern-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(101, 94, 122, 0.08);
    margin-bottom: 1rem;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
}

.modern-card:hover {
    box-shadow: 0 4px 12px rgba(101, 94, 122, 0.12);
}

.modern-card-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modern-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.modern-card-body {
    padding: 1.5rem;
}

/* Two Column Layout */
.profile-two-column {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

@media (max-width: 992px) {
    .profile-two-column {
        grid-template-columns: 1fr;
    }
}

/* Buttons */
.btn-modern {
    padding: 0.5rem 1.5rem;
    border-radius: 24px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-modern-primary:hover {
    background-color: #005885;
}

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

.btn-modern-outline:hover {
    background-color: rgba(0, 115, 177, 0.1);
}

.btn-modern-success {
    background-color: var(--success-color);
    color: white;
    border-radius: 8px;
    border: 1px solid var(--success-color);
}

.btn-modern-success:hover {
    background-color: #4d4760;
    border-color: #4d4760;
}

.btn-modern-secondary {
    background-color: #6b7280;
    color: white;
    border: 1px solid #6b7280;
}

.btn-modern-secondary:hover {
    background-color: #4b5563;
    border-color: #4b5563;
}

/* House Response Button States */
.house-response-btn {
    transition: all 0.3s ease;
}

/* Default state - white/neutral */
.house-response-btn.btn-neutral {
    background-color: white;
    border: 1px solid #d1d5db;
    color: #6b7280;
}

.house-response-btn.btn-neutral:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

/* Active Yes state - light green */
.house-response-btn.btn-yes-active {
    background-color: #dcfce7;
    border: 1px solid #86efac;
    color: #16a34a;
}

.house-response-btn.btn-yes-active:hover {
    background-color: #bbf7d0;
    border-color: #4ade80;
}

/* Active No state - light red */
.house-response-btn.btn-no-active {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #dc2626;
}

.house-response-btn.btn-no-active:hover {
    background-color: #fecaca;
    border-color: #f87171;
}

/* Info List */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

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

.info-label {
    font-size: 14px;
    color: var(--text-light);
    min-width: 150px;
}

.info-value {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

/* Houses Grid */
#houses-list-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.house-card {
    background: white;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.house-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,.15);
}

.house-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.house-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.house-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.house-details {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.house-content > .d-flex {
    margin-top: auto;
}

/* Bookings List */
.booking-modern-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-info {
    flex: 1;
}

.booking-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.booking-time {
    font-size: 14px;
    color: var(--text-light);
}

.booking-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Admin Dashboard Tabs */
.admin-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.admin-card {
    background: #f8fbff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(101, 94, 122, 0.08);
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(101, 94, 122, 0.1);
}

.admin-card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #655E7A 0%, #7d6b94 100%);
    color: white;
}

.admin-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-card-body {
    padding: 1.5rem;
}

/* Full Width Admin Card */
.admin-card-full {
    grid-column: 1 / -1;
}

.user-search-result {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* Badge Styles */
.badge-modern {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-admin {
    background-color: #e3f2fd;
    color: #1976d2;
}

.badge-active {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.badge-locked {
    background-color: #f5f5f5;
    color: #757575;
    cursor: help;
}

.badge-inactive {
    background-color: #ffebee;
    color: #c62828;
}

/* Blurred code effect */
.code-blurred {
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
    font-family: monospace;
    letter-spacing: 2px;
}

.booking-code {
    margin-top: 0.5rem;
}

/* Small button variant for user cards */
.btn-modern-sm {
    padding: 0.25rem 0.75rem;
    font-size: 12px;
    border-radius: 16px;
    font-weight: 600;
    border: 1px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

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

.btn-modern-sm:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Payment token badge inside user search card */
.user-token-badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    background-color: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #92400e;
    letter-spacing: 0.05em;
    font-family: monospace;
}

/* Responsive */
@media (max-width: 992px) {
    .profile-info-wrapper {
        padding: 0 1rem 1rem;
    }
    
    .profile-nav-tabs-inner {
        padding: 0 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .profile-nav-tab {
        padding: 0.75rem 0.6rem;
        font-size: 12px;
        gap: 0.25rem;
    }

    .profile-nav-tab i {
        font-size: 13px;
    }
    
    .profile-tab-content {
        padding: 0 1rem 2rem;
    }
    
    #houses-list-modern {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .admin-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Increase background gradient height to fit mobile content */
    .profile-full-page {
        background: linear-gradient(to bottom, #655E7A 0%, #655E7A 240px, #f0f4f8 240px, #f0f4f8 100%);
    }
    
    .profile-cover {
        height: 0px;
        display: none;
    }
    
    .profile-info-wrapper {
        padding: 0 1rem 1rem;
    }
    
    .profile-top-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: 0px;
        padding-top: 1.5rem;
        margin-bottom: 1rem;
    }
    
    /* Smaller avatar on mobile */
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 36px;
        border: 3px solid white;
    }
    
    .profile-header-content {
        padding-top: 0.75rem;
    }
    
    /* Smaller text on mobile */
    .profile-name {
        font-size: 18px !important;
        color: white !important;
        text-shadow: 0 2px 4px rgba(0,0,0,.3);
    }
    
    .profile-role {
        font-size: 14px !important;
        color: rgba(255, 255, 255, 0.9) !important;
        text-shadow: 0 1px 2px rgba(0,0,0,.2);
    }
    
    .profile-meta {
        font-size: 13px !important;
        color: rgba(255, 255, 255, 0.85) !important;
        text-shadow: 0 1px 2px rgba(0,0,0,.2);
    }
    
    /* Hide stats completely on mobile - they take too much space */
    .profile-stats {
        display: none !important;
    }
    
    /* Compact navigation tabs */
    .profile-nav-tabs-inner {
        gap: 0;
        justify-content: space-around;
    }
    
    .profile-nav-tab {
        padding: 0.75rem 0.5rem;
        font-size: 11px;
        flex-direction: column;
        gap: 0.25rem;
        flex: 1;
        text-align: center;
    }
    
    .profile-nav-tab i {
        font-size: 18px;
    }
    
    /* Hide tab text, show only icons on very small screens */
    @media (max-width: 480px) {
        .profile-nav-tab {
            font-size: 0;
            padding: 0.75rem 0.25rem;
        }
        
        .profile-nav-tab i {
            font-size: 20px;
        }
        
        .profile-nav-tab::after {
            content: attr(data-tab);
            font-size: 10px;
            text-transform: capitalize;
            margin-top: 0.25rem;
        }
    }
    
    #houses-list-modern {
        grid-template-columns: 1fr;
    }
    
    /* Reduce padding in cards on mobile */
    .modern-card-body {
        padding: 1rem;
    }
    
    .modern-card-header {
        padding: 1rem;
    }
    
    .house-content {
        padding: 1rem;
    }
}

/* Payment Alert */
.payment-alert-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.payment-alert-modern h4 {
    color: white;
    margin-bottom: 1rem;
}

.payment-code {
    background: white;
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

/* Payment Alert at Top */
.payment-alert-top {
    background: linear-gradient(135deg, #655E7A 0%, #7d6b94 100%);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(101, 94, 122, 0.15);
    border: 1px solid rgba(101, 94, 122, 0.2);
    overflow: hidden;
}

.payment-alert-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
}

.payment-alert-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.payment-alert-body {
    flex: 1;
    color: white;
}

.payment-alert-body h4 {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 20px;
    font-weight: 600;
}

.payment-alert-body p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

.payment-alert-body strong {
    color: white;
    font-weight: 600;
}

.payment-code-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.payment-code-label {
    margin: 0 0 0.5rem 0 !important;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.payment-code-wrapper {
    margin: 0.5rem 0 !important;
    display: block !important;
}

.payment-alert-body .payment-code {
    background: white;
    color: #655E7A;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: inline-block;
    margin: 0;
}

.payment-instruction {
    margin: 0.75rem 0 0 0 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 14px;
    line-height: 1.5;
}

.payment-instruction i {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Bank Links Section */
.bank-links {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.bank-links-title {
    margin: 0 0 0.75rem 0 !important;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

.bank-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bank-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.bank-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bank-btn i {
    font-size: 16px;
}

.bank-btn.mobilepay {
    background: rgba(90, 120, 255, 0.2);
    border-color: rgba(90, 120, 255, 0.4);
}

.bank-btn.mobilepay:hover {
    background: rgba(90, 120, 255, 0.3);
    border-color: rgba(90, 120, 255, 0.6);
}

.payment-check-info {
    margin: 1.5rem 0 0 0 !important;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.payment-check-info small {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 13px;
}

.payment-alert-body small {
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.payment-alert-body small i {
    font-size: 16px;
}

/* Mobile responsive for payment alert */
@media (max-width: 768px) {
    .payment-alert-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.25rem;
    }
    
    .payment-alert-icon {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    
    .payment-alert-body h4 {
        font-size: 18px;
    }
    
    .payment-instruction {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .bank-buttons {
        justify-content: center;
    }
    
    .bank-btn {
        font-size: 12px;
        padding: 0.4rem 0.8rem;
    }
    
    .payment-alert-body .payment-code {
        font-size: 16px;
        padding: 0.4rem 1rem;
    }
    
    .payment-check-info small {
        justify-content: center;
    }
}

/* Tabs Modern */
.tabs-modern {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.tab-modern {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.2s;
}

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

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

/* Loading Spinner */
.spinner-modern {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,115,177,0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Icon Styles */
.icon-modern {
    font-size: 20px;
    color: var(--primary-color);
}

/* Form Modern */
.form-modern {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group-modern {
    display: flex;
    flex-direction: column;
}

.form-label-modern {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control-modern {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 48px;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-state-text {
    font-size: 16px;
}

/* ===================================
   Professional Calendar Styling
   =================================== */

/* Calendar Container - Remove nested card feeling */
#tab-booking .modern-card {
    padding: 0;
    overflow: visible;
    box-shadow: none;
    border: none;
    background: transparent;
}

#tab-booking .modern-card-header {
    background: white;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
    padding: 1.5rem 0;
}

#tab-booking .modern-card-body {
    padding: 0;
    background: transparent;
}

/* FullCalendar Custom Styling */
.fc {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    overflow: hidden;
    padding: 1.5rem;
}

/* Calendar Header */
.fc .fc-toolbar {
    padding: 0 0 1.5rem 0;
    gap: 1rem;
    flex-wrap: wrap;
}

.fc .fc-toolbar-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

/* Calendar Buttons */
.fc .fc-button {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    text-transform: capitalize;
}

.fc .fc-button:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.fc .fc-button:focus {
    box-shadow: none;
}

.fc .fc-button-active,
.fc .fc-button-active:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.fc .fc-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Remove default button group styling */
.fc .fc-button-group {
    gap: 0.25rem;
}

.fc .fc-button-group > .fc-button {
    border-radius: 6px;
}

/* Calendar Grid */
.fc-theme-standard td,
.fc-theme-standard th {
    border-color: var(--border-color);
}

.fc .fc-scrollgrid {
    border-color: var(--border-color);
}

/* Day Headers */
.fc .fc-col-header-cell {
    background: #fafbfc;
    border-color: var(--border-color);
    padding: 1rem 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

/* Time Slots */
.fc .fc-timegrid-slot {
    height: 3rem;
    border-color: rgba(0, 0, 0, 0.05);
}

.fc .fc-timegrid-slot-label {
    border-color: var(--border-color);
    padding: 0.5rem;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

/* Time Grid Cells */
.fc .fc-timegrid-col {
    background: white;
}

.fc .fc-timegrid-col:hover {
    background: #f8f9fa;
}

/* Today Highlight */
.fc .fc-day-today {
    background: rgba(101, 94, 122, 0.05) !important;
}

.fc .fc-day-today .fc-col-header-cell-cushion {
    color: var(--primary-color);
    font-weight: 700;
}

/* Events */
.fc-event {
    border: none;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.fc-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.fc-event-title {
    font-weight: 600;
}

.fc-event-time {
    font-weight: 400;
    opacity: 0.9;
}

/* Now Indicator */
.fc .fc-timegrid-now-indicator-line {
    border-color: #e74c3c;
    border-width: 2px;
}

.fc .fc-timegrid-now-indicator-arrow {
    border-color: #e74c3c;
}

/* Selection (when clicking/dragging) */
.fc-highlight {
    background: rgba(101, 94, 122, 0.1) !important;
    border: 2px dashed var(--primary-color);
}

/* Scrollbar Styling */
.fc-scroller::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.fc-scroller::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.fc-scroller::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.fc-scroller::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* More Link */
.fc .fc-more-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 12px;
}

.fc .fc-more-link:hover {
    color: var(--text-dark);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .fc .fc-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .fc .fc-toolbar-title {
        font-size: 20px;
    }
    
    .fc .fc-button {
        padding: 0.4rem 0.8rem;
        font-size: 12px;
    }
    
    .fc {
        padding: 1rem;
    }
}

/* Booking Modal Enhancements */
#bookingModal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#bookingModal .modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7d6b94 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    border: none;
    padding: 1.5rem;
}

#bookingModal .modal-title {
    font-weight: 600;
    font-size: 20px;
}

#bookingModal .btn-close {
    filter: brightness(0) invert(1);
}

#bookingModal .modal-body {
    padding: 1.5rem;
}

#bookingModal .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

#bookingModal .form-select {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 14px;
}

#bookingModal .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(101, 94, 122, 0.15);
}

#bookingModal #bookingTime {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
    margin-top: 0.5rem;
}

#bookingModal .modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

#bookingModal .btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

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

#bookingModal .btn-primary {
    background: var(--primary-color);
    border: none;
}

#bookingModal .btn-primary:hover {
    background: #7d6b94;
}

/* My Bookings Card Below Calendar */
#tab-booking .modern-card:last-child {
    margin-top: 2rem;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

#tab-booking .modern-card:last-child .modern-card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

/* Booking Item Styling */
.booking-modern-item {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
    background: white;
}

.booking-modern-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.booking-modern-item:last-child {
    margin-bottom: 0;
}

/* Admin Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-stat-box {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.admin-stat-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: #d1d5db !important;
}

.admin-stat-box .stat-icon {
    width: 50px;
    height: 50px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #655E7A;
    flex-shrink: 0;
}

.admin-stat-box .stat-details {
    flex: 1;
}

.admin-stat-box .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.admin-stat-box .stat-text {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.admin-stat-box .stat-subtext {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Admin Settings Widgets */
.cron-setting-item {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.cron-setting-item h6 {
    color: #1f2937;
    font-weight: 600;
}

.cron-setting-item i {
    margin-right: 0.5rem;
    color: #655E7A;
}

/* Registration Lock Item */
.reg-lock-item {
    background: white;
    border: 1px solid #e8e4ef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.875rem;
    transition: box-shadow 0.2s ease;
}

.reg-lock-item:hover {
    box-shadow: 0 4px 14px rgba(101, 94, 122, 0.15);
}

/* Coloured top bar matching card header */
.reg-lock-item .lock-bar {
    background: linear-gradient(135deg, #655E7A 0%, #7d6b94 100%);
    padding: 0.9rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.reg-lock-item .lock-dates {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reg-lock-item .lock-dates i {
    opacity: 0.8;
    font-size: 1rem;
}

/* Active status dot — green = active, dim = inactive */
.lock-status-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.6);
}

.lock-status-dot.active   { background: #2ecc71; border-color: rgba(255,255,255,0.7); }
.lock-status-dot.inactive { background: rgba(255,255,255,0.35); }

/* Body below the bar */
.reg-lock-item .lock-body {
    padding: 0.9rem 1.1rem;
}

.reg-lock-item .lock-reason {
    color: #444;
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 0.6rem;
}

.reg-lock-item .lock-meta {
    font-size: 0.78rem;
    color: #aaa;
    margin-bottom: 0.75rem;
}

/* Lock action buttons */
.lock-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.lock-actions button {
    padding: 0.4rem 0.9rem;
    border: none;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.lock-actions .toggle-lock-btn {
    background: linear-gradient(135deg, #655E7A 0%, #7d6b94 100%);
    color: white;
}

.lock-actions .toggle-lock-btn.inactive {
    background: #e9ecef;
    color: #6c757d;
}

.lock-actions .toggle-lock-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.lock-actions .edit-lock-btn {
    background: transparent;
    color: #655E7A;
    border: 1px solid #655E7A;
}

.lock-actions .edit-lock-btn:hover {
    background: #655E7A;
    color: white;
}

.lock-actions .delete-lock-btn {
    background: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.lock-actions .delete-lock-btn:hover {
    background: #dc3545;
    color: white;
}

@media (max-width: 768px) {
    .lock-actions { flex-direction: column; }
    .lock-actions button { width: 100%; justify-content: center; }
}

/* Form Switches */
.form-check-input:checked {
    background-color: #655E7A;
    border-color: #655E7A;
}

.form-check-input:focus {
    border-color: #655E7A;
    box-shadow: 0 0 0 0.25rem rgba(101, 94, 122, 0.25);
}

.form-check-input {
    cursor: pointer;
}

/* Registration Lock Status */
#current-reg-lock-status .lock-status-card {
    padding: 1rem;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    color: #92400e;
}

#current-reg-lock-status .lock-status-card.active {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

#current-reg-lock-status .lock-status-card i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* Loader */
.spinner-modern {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #655E7A;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Registration Lock Inline Form */
.reg-lock-form-container {
    background: #f9fafb;
    border: 2px solid #655E7A;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease-out;
}

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

.reg-lock-form-container .form-label-modern {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.reg-lock-form-container .form-control-modern {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.reg-lock-form-container .form-control-modern:focus {
    border-color: #655E7A;
    box-shadow: 0 0 0 3px rgba(101, 94, 122, 0.1);
    outline: none;
}

.reg-lock-form-container textarea.form-control-modern {
    resize: vertical;
    min-height: 80px;
}

/* Additional mobile improvements for admin header */
@media (max-width: 768px) {
    /* Admin avatar smaller on mobile */
    #admin-dashboard .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }
    
    /* Admin header text adjustments */
    #admin-dashboard .profile-name {
        font-size: 18px !important;
    }
    
    #admin-dashboard .profile-role,
    #admin-dashboard .profile-meta {
        font-size: 13px !important;
    }
    
    /* Compact admin stats grid on mobile */
    .admin-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .admin-stat-box {
        padding: 1rem;
    }
    
    .admin-stat-box .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .admin-stat-box .stat-number {
        font-size: 24px;
    }
    
    .admin-stat-box .stat-text {
        font-size: 12px;
    }
}

/* ============================================================
   Venteliste Tab – User Table  (v16)
   ============================================================ */

.vl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.vl-table thead tr {
    background: #f8f7fa;
    border-bottom: 2px solid #e5e7eb;
}

.vl-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.vl-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s ease;
}

.vl-table tbody tr:hover {
    background: #f5f3ff;
}

.vl-table td {
    padding: 0.7rem 1rem;
    color: #374151;
    vertical-align: middle;
}

.vl-table td:first-child {
    color: #9ca3af;
    font-size: 0.8rem;
}

.vl-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.vl-badge-active   { background: #d1fae5; color: #065f46; }
.vl-badge-inactive { background: #fee2e2; color: #991b1b; }

.vl-token {
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    background: #f3f0ff;
    color: #5b21b6;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.vl-table-footer {
    padding: 0.6rem 1rem;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    border-radius: 0 0 12px 12px;
}

/* Icon-only square button (e.g. refresh) */
.btn-modern-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.btn-modern-icon:hover {
    background-color: #005885;
    transform: rotate(20deg);
}

.btn-modern-icon:active {
    transform: rotate(90deg);
}

.btn-modern-icon i {
    color: #ffffff;
    line-height: 1;
}
