/* TSM Scaffold Management System - Custom Styles */
/* Futuristic and innovative design theme */

:root {
    /* Neutral Professional Theme */
    --primary-color: #ffc107;
    --secondary-color: #868e96;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --text-color: #ffffff;
    --text-dark: #212529;
    --background-dark: #2c2c2c;
    --background-medium: #3c3c3c;
    --background-light: #4c4c4c;
    --neutral-light: #e9ecef;
    --neutral-medium: #dee2e6;
    --neutral-dark: #6c757d;
    
    /* Neutral Gradients */
    --gradient-primary: linear-gradient(135deg, #6c757d, #5a6268);
    --gradient-secondary: linear-gradient(135deg, #e9ecef, #dee2e6);
    --gradient-dark: linear-gradient(135deg, #2c2c2c, #3c3c3c, #4c4c4c);
    --gradient-danger: linear-gradient(135deg, #dc3545, #c82333);
    --gradient-warning: linear-gradient(135deg, #ffc107, #e0a800);
    --gradient-success: linear-gradient(135deg, #28a745, #218838);
    
    /* Clean Shadows */
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 16px rgba(0, 0, 0, 0.2);
    
    --border-radius: 8px;
    --transition: all 0.2s ease;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    background: var(--gradient-dark);
    min-height: 100vh;
    color: var(--text-color);
    position: relative;
    overflow-x: hidden;
}

/* Dark Mode Form Controls - Global Fix */
.form-select.bg-dark,
.form-control.bg-dark {
    color: #ffffff !important;
    background-color: #2d2d2d !important;
    border-color: #6c757d !important;
}

.form-select.bg-dark option {
    color: #ffffff !important;
    background-color: #2d2d2d !important;
}

.form-select.bg-dark option:checked {
    background-color: #495057 !important;
    color: #ffffff !important;
}

/* Ensure placeholder text is visible */
.form-control.bg-dark::placeholder {
    color: #6c757d !important;
    opacity: 1;
}

/* Fix for all form elements in dark modals */
.modal.fade .modal-content.bg-dark .form-select,
.modal.fade .modal-content.bg-dark .form-control {
    color: #ffffff !important;
    background-color: #2d2d2d !important;
    border-color: #6c757d !important;
}

.modal.fade .modal-content.bg-dark .form-select option {
    color: #ffffff !important;
    background-color: #2d2d2d !important;
}

/* Comprehensive fix for all input types in dark theme */
input.form-control.bg-dark,
input.form-control.bg-dark[type="text"],
input.form-control.bg-dark[type="email"], 
input.form-control.bg-dark[type="password"],
input.form-control.bg-dark[type="tel"],
textarea.form-control.bg-dark,
select.form-select.bg-dark {
    color: #ffffff !important;
    background-color: #2d2d2d !important;
    border-color: #6c757d !important;
}

/* Force text color for all inputs in dark modals */
.modal-content.bg-dark input,
.modal-content.bg-dark select,
.modal-content.bg-dark textarea {
    color: #ffffff !important;
    background-color: #2d2d2d !important;
}

/* Ensure labels are visible */
.modal-content.bg-dark .form-label {
    color: #ffffff !important;
}

/* Fix for focused state */
.form-control.bg-dark:focus,
.form-select.bg-dark:focus {
    color: #ffffff !important;
    background-color: #2d2d2d !important;
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25) !important;
}

/* Fix for checkbox and form labels in dark modals */
.modal-content.bg-dark .form-check-label,
.modal-content.bg-dark .form-label,
.modal-content.bg-dark label {
    color: #ffffff !important;
}

.modal-content.bg-dark .text-muted,
.modal-content.bg-dark small.text-muted {
    color: #adb5bd !important;
}

/* Animated background for futuristic feel */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(40, 167, 69, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(23, 162, 184, 0.08) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Navigation */
.navbar {
    background: var(--gradient-dark) !important;
    box-shadow: var(--shadow-medium);
    padding: 1rem 0;
    border-bottom: 2px solid var(--primary-color);
}

/* Enhanced navbar toggler styling */
.navbar-toggler {
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
    border-color: rgba(255, 215, 0, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 215, 0, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navbar collapse transition */
.navbar-collapse {
    transition: all 0.3s ease-in-out;
}

.navbar-collapse.collapsing {
    transition: height 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff !important;
    transition: var(--transition);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.navbar-brand:hover {
    color: #ffc107 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* TAK Logo Styling */
.tak-logo {
    height: 50px;
    width: auto;
    filter: brightness(1.2) contrast(1.1);
    transition: var(--transition);
}

/* Navbar Brand Container */
.navbar-brand-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

/* Language Dropdown Container */
.language-dropdown-container {
    margin: 0;
}

/* Desktop layout - stack vertically */
@media (min-width: 992px) {
    .navbar-brand-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .language-dropdown-container {
        margin-left: 0.25rem;
    }
}

.language-dropdown-container .dropdown-toggle {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    border: 1px solid rgba(255, 193, 7, 0.5);
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.language-dropdown-container .dropdown-toggle:hover {
    background: rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
    color: #ffc107;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.language-dropdown-container .dropdown-toggle:active,
.language-dropdown-container .dropdown-toggle:focus {
    background: rgba(255, 193, 7, 0.3);
    border-color: #ffc107;
    color: #ffc107;
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(255, 193, 7, 0.3);
}

.language-dropdown-container .dropdown-menu {
    background: rgba(44, 44, 44, 0.95);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 0.375rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0;
    margin-top: 0.25rem;
    min-width: 120px;
}

.language-dropdown-container .dropdown-item {
    color: var(--text-color);
    padding: 0.4rem 0.75rem;
    transition: all 0.2s ease;
    border: none;
    background: none;
    font-size: 0.8rem;
}

.language-dropdown-container .dropdown-item:hover {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    transform: translateX(2px);
}

.language-dropdown-container .dropdown-item.active {
    background: rgba(255, 193, 7, 0.25);
    color: #ffc107;
    font-weight: 700;
}

.language-dropdown-container .dropdown-item i {
    width: 16px;
    text-align: center;
}



.tak-logo:hover {
    filter: brightness(1.4) contrast(1.2);
    transform: scale(1.05);
}

/* Logo in cards and forms */
.card-logo {
    height: 40px;
    width: auto;
    opacity: 0.7;
    transition: var(--transition);
}

.card-logo:hover {
    opacity: 1;
}

/* Footer logo */
.footer-logo {
    height: 80px;
    width: auto;
    filter: brightness(1.2);
}

/* Modern Project Selection Styles */
.modern-project-selection {
    min-height: 100vh;
    padding: 2rem 0;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #2a2a2a 100%);
}

/* User Instructions */
.user-instructions {
    margin: 2rem 0;
}

.instruction-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.instruction-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.instruction-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.instruction-card.has-access {
    border-left: 4px solid #28a745;
}

.instruction-card.need-access {
    border-left: 4px solid #ffc107;
}

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

.instruction-card.has-access .instruction-icon {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.instruction-card.need-access .instruction-icon {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.instruction-content h6 {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.instruction-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Mobile responsive for instructions */
@media (max-width: 768px) {
    .instruction-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .instruction-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .instruction-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Enhanced project action guidance */
.project-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.access-hint {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    text-align: center;
    font-style: italic;
    line-height: 1.2;
}

.project-item:hover .access-hint {
    color: rgba(255, 255, 255, 0.9);
}

/* Enhanced action button styling */
.action-btn.primary .access-hint {
    color: rgba(40, 167, 69, 0.8);
}

.action-btn.request + .access-hint {
    color: rgba(255, 193, 7, 0.8);
}

.action-btn.pending + .access-hint {
    color: rgba(108, 117, 125, 0.8);
}

.action-btn.disabled + .access-hint {
    color: rgba(108, 117, 125, 0.6);
}

.selection-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.header-content {
    position: relative;
    z-index: 2;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    font-weight: 300;
}

.header-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
    z-index: 1;
}

.decoration-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
    position: absolute;
    top: 50%;
    animation: decorationPulse 3s ease-in-out infinite;
}

@keyframes decorationPulse {
    0%, 100% { opacity: 0.3; transform: translateY(-50%) scaleX(0.5); }
    50% { opacity: 1; transform: translateY(-50%) scaleX(1); }
}

.country-group {
    margin-bottom: 3rem;
}

.country-label {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.country-flag {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.country-name {
    font-size: 1.25rem;
    font-weight: 500;
    color: #ffffff;
    margin-right: 1rem;
    min-width: 80px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.country-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.3), transparent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    padding: 0 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.project-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
}

.project-item:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(212, 175, 55, 0.1);
}

.project-item.restricted {
    border-color: rgba(255, 193, 7, 0.3);
    background: rgba(255, 193, 7, 0.05);
}

.project-inner {
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.status-indicators {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.active {
    background: #28a745;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.4);
}

.status-dot.inactive {
    background: #6c757d;
}

.lock-icon {
    color: #ffc107;
    font-size: 0.9rem;
    filter: brightness(1.2);
}

.project-main {
    flex: 1;
    margin-bottom: 1rem;
}

.project-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.project-details {
    space-y: 0.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.detail-item i {
    width: 16px;
    margin-right: 0.5rem;
    color: #f8d866 !important;
    flex-shrink: 0;
    filter: brightness(1.4);
    font-size: 0.8rem;
}

.detail-item.description {
    margin-top: 0.75rem;
    font-style: italic;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.location-text span {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
    font-weight: 500 !important;
}

.project-action {
    margin-top: auto;
}

.action-btn {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    border: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.action-btn.primary {
    background: var(--gradient-primary);
    color: #ffffff;
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
    color: #ffffff;
    text-decoration: none;
}

.action-btn.request {
    background: var(--neutral-light);
    color: var(--text-dark);
    border: 1px solid var(--neutral-medium);
}

.action-btn.request:hover {
    background: var(--neutral-medium);
    border-color: var(--neutral-dark);
}

.action-btn.pending {
    background: rgba(255, 193, 7, 0.2);
    color: rgba(255, 193, 7, 0.9);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.action-btn.disabled {
    background: rgba(108, 117, 125, 0.2);
    color: rgba(108, 117, 125, 0.8);
    cursor: not-allowed;
}

/* Override all action button variants to use neutral colors */
.action-btn.warning, .action-btn.success, .action-btn.info, 
.action-btn.danger, .action-btn.secondary {
    background: var(--gradient-primary);
    color: #ffffff;
}

.action-btn.warning:hover, .action-btn.success:hover, .action-btn.info:hover,
.action-btn.danger:hover, .action-btn.secondary:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
    color: #ffffff;
    text-decoration: none;
}

.modern-modal .modal-content {
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(20px);
}

.modern-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.modern-modal .modal-body {
    color: rgba(255, 255, 255, 0.9);
}

/* Fix modal text visibility */
.modal .modal-content {
    background: linear-gradient(135deg, rgba(33, 37, 41, 0.95), rgba(0, 0, 0, 0.9)) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    color: #ffffff !important;
}

.modal .modal-header {
    border-bottom: 1px solid rgba(212, 175, 55, 0.3) !important;
    color: #ffffff !important;
}

.modal .modal-body {
    color: #ffffff !important;
}

.modal .modal-title {
    color: #ffffff !important;
}

.modal .modal-body h6 {
    color: #d4af37 !important;
    font-weight: 600 !important;
}

.modal .modal-body small {
    color: rgba(255, 255, 255, 0.8) !important;
}

.modal .modal-body p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.modal .badge {
    color: #000000 !important;
}

.modal .text-warning {
    color: #d4af37 !important;
}

.modal .text-uppercase {
    color: #d4af37 !important;
}

/* Action selection area styling */
.action-selection-area {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.action-selection-area .category-header {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 0.5rem;
}

.action-selection-area .category-header small {
    color: #d4af37 !important;
    font-weight: 600 !important;
    text-transform: uppercase;
}

.request-info h6 {
    color: #d4af37;
    margin-bottom: 0.25rem;
}

.request-info p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.form-group label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    padding: 0.75rem;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.1);
    color: #ffffff;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Form labels - ensure visibility on dark backgrounds */
.form-label, .card .form-label, label {
    color: #ffffff !important;
    font-weight: 500 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
    margin-bottom: 0.5rem !important;
}

/* Card headers should have dark text */
.card-header h5, .card-header h6, .card-header .mb-0 {
    color: #000000 !important;
    text-shadow: none !important;
}

/* Ensure all card body labels are white */
.card-body label, .card-body .form-label {
    color: #ffffff !important;
    font-weight: 500 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
}

/* Form text elements */
.form-text {
    color: rgba(255, 255, 255, 0.7) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.empty-state-modern {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.empty-state-modern .empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: rgba(212, 175, 55, 0.5);
}

.empty-state-modern h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 300;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
        max-width: none;
    }
    
    .country-label {
        padding: 0 0.5rem;
    }
    
    .project-inner {
        padding: 1rem;
    }
    
    .header-main {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .main-project-name {
        font-size: 1.8rem;
    }
    
    .project-meta {
        justify-content: center;
        gap: 1rem;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
}

/* Footer background enhancement */

/* Modern Dashboard Styles */
.modern-dashboard {
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Simplified Project Header */
.project-header-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(42, 42, 42, 0.8));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.project-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #e6c843, #f8d866);
}

.header-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-logo {
    height: 60px;
    width: auto;
    filter: brightness(1.3) contrast(1.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.project-title-section {
    flex: 1;
}

.main-project-name {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.location-info {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-info i {
    color: #d4af37;
    font-size: 0.9rem;
}

.status-indicator {
    background: linear-gradient(135deg, #28a745, #34ce57);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.status-indicator i {
    font-size: 0.7rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

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

.stat-item, .stat-card-modern {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(0, 0, 0, 0.4));
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    color: #ffffff;
    cursor: pointer;
}

.stat-item:hover, .stat-card-modern:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(0, 0, 0, 0.5));
}

.stat-number {
    color: #ffffff !important;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.stat-label {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-info {
    color: #ffffff !important;
}

.stat-info span {
    color: #ffffff !important;
}

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

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

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

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

.stat-icon.danger {
    background: var(--danger-color);
    color: white;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.stat-label {
    color: var(--text-color);
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.section-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(0, 0, 0, 0.4));
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.section-header {
    background: var(--gradient-primary);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h3 {
    color: var(--dark-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.view-all-btn {
    color: var(--dark-color);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.view-all-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    color: var(--dark-color);
}

/* Activity Section */
.activity-list {
    padding: 1.5rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

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

.activity-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.activity-icon.standard {
    background: var(--primary-color);
    color: white;
}

.activity-icon.alteration {
    background: var(--warning-color);
    color: var(--dark-color);
}

.activity-icon.custom {
    background: var(--accent-cyan);
    color: white;
}

.activity-details {
    flex: 1;
}

.activity-title {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.activity-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
}

.booking-id {
    color: var(--primary-color);
    font-weight: 600;
}

.status-mini {
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
}

.status-mini.pending {
    background: var(--warning-color);
    color: var(--dark-color);
}

.status-mini.approved {
    background: var(--success-color);
    color: white;
}

.status-mini.rejected {
    background: var(--danger-color);
    color: white;
}

.date {
    color: var(--text-color);
    opacity: 0.7;
}

.empty-activity {
    text-align: center;
    padding: 2rem;
    color: var(--text-color);
    opacity: 0.6;
}

.empty-activity i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Actions Section */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

/* Categorized actions styling */
.action-category {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

.action-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.category-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-left: 3px solid var(--accent-gold);
    padding-left: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 0;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.85rem;
}

.action-btn i {
    font-size: 1.5rem;
}

.action-btn.primary,
.action-btn.warning,
.action-btn.success,
.action-btn.info,
.action-btn.secondary {
    background: var(--gradient-primary);
    color: #ffffff;
    font-weight: 500;
    border: 1px solid var(--neutral-dark);
}

.action-btn.danger {
    background: var(--danger-color);
    color: white;
    font-weight: 500;
}

.action-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Notifications Section */
.notifications-section {
    grid-column: 1 / -1;
}

.notifications-list {
    padding: 1.5rem;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    background: rgba(255, 152, 0, 0.1);
    border-left: 4px solid var(--warning-color);
}

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

.notification-icon {
    width: 35px;
    height: 35px;
    background: var(--warning-color);
    color: var(--dark-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.notification-content {
    flex: 1;
}

.notification-title {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.notification-details {
    color: var(--text-color);
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.notification-date {
    color: var(--warning-color);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-dashboard {
        padding: 0.5rem;
    }
    
    .compact-header {
        padding: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-badges {
        align-self: stretch;
        justify-content: space-between;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .actions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    @media (min-width: 480px) {
        .actions-grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }
    
    .action-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .action-btn i {
        font-size: 1.2rem;
    }
}
.footer {
    background: linear-gradient(135deg, #2a2a2a, #3a3a3a, #4a4a4a) !important;
}

/* Booking Form Button Text Visibility */
.btn-outline-warning {
    color: var(--warning-color) !important;
    border-color: var(--warning-color) !important;
}

.btn-outline-warning:hover,
.btn-outline-warning:focus,
.btn-outline-warning:active,
.btn-outline-warning.active,
.btn-check:checked + .btn-outline-warning {
    background-color: var(--warning-color) !important;
    border-color: var(--warning-color) !important;
    color: var(--dark-color) !important;
    font-weight: 600 !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-check:checked + .btn-outline-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    font-weight: 600 !important;
}

.btn-outline-info {
    color: var(--accent-cyan) !important;
    border-color: var(--accent-cyan) !important;
}

.btn-outline-info:hover,
.btn-outline-info:focus,
.btn-outline-info:active,
.btn-outline-info.active,
.btn-check:checked + .btn-outline-info {
    background-color: var(--accent-cyan) !important;
    border-color: var(--accent-cyan) !important;
    color: white !important;
    font-weight: 600 !important;
}

/* Ensure all booking form buttons have proper text visibility */
.booking-card .btn-group .btn {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.5rem 0.75rem;
}

.booking-card .btn-group .btn i {
    margin-right: 0.4rem;
    font-size: 0.85rem;
}

/* Mobile responsiveness for booking buttons */
@media (max-width: 768px) {
    .booking-card .btn-group .btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
        min-height: 44px;
    }
    
    .booking-card .btn-group .btn i {
        margin-right: 0.3rem;
        font-size: 0.8rem;
    }
}

.navbar-nav .nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
    margin: 0 0.2rem;
    border: 1px solid transparent;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

/* Clean and Visible Dropdown Styling */
.dropdown-menu {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-top: 4px;
    min-width: 200px;
}

.dropdown-item {
    color: #212529 !important;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    border: none;
    background: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff !important;
}

.dropdown-item:active {
    background-color: #007bff;
    color: #ffffff !important;
}

.dropdown-item i {
    width: 16px;
    margin-right: 8px;
    text-align: center;
}

.dropdown-divider {
    border-color: #dee2e6;
    margin: 4px 0;
}

/* Dropdown header styling - prominent yellow categories */
.dropdown-header {
    color: #212529 !important;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 10px 16px 6px 16px;
    margin: 0;
    background: linear-gradient(135deg, #ffc107, #ffca2c);
    border-bottom: 2px solid #e0a800;
    display: flex;
    align-items: center;
    cursor: default;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.dropdown-header i {
    opacity: 0.8;
    font-size: 0.75rem;
    color: #212529;
}

/* Clean User Menu Styling */
.user-role-badge {
    background: #e9ecef;
    color: #495057 !important;
    font-weight: 600;
    border-radius: 6px;
    padding: 8px 16px !important;
    margin: 4px 0;
    border: 1px solid #ced4da;
    display: flex;
    align-items: center;
}

.user-role-badge i {
    color: #495057;
    margin-right: 8px;
}

.logout-item {
    background: #fff5f5;
    color: #dc3545 !important;
    font-weight: 600;
    border: 1px solid #f5c6cb;
    margin: 4px 0;
}

.logout-item:hover {
    background: #f8d7da;
    color: #dc3545 !important;
}

.logout-item i {
    color: #dc3545;
}

.logout-item:hover i {
    color: #dc3545;
}

/* Right-aligned dropdown menu positioning */
.dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
}

/* Navbar dropdown toggle enhanced styling */
.nav-item.dropdown .nav-link.dropdown-toggle {
    position: relative;
    overflow: hidden;
}

.nav-item.dropdown .nav-link.dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.nav-item.dropdown .nav-link.dropdown-toggle:hover::after,
.nav-item.dropdown .nav-link.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Professional navbar link styling */
.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin: 0 0.2rem;
    position: relative;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107 !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link:active,
.navbar-nav .nav-link.active {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107 !important;
}

/* Clean Mobile Navigation */
@media (max-width: 991.98px) {
    .dropdown-menu {
        background: #ffffff;
        border: 1px solid #dee2e6;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border-radius: 8px;
        margin-top: 4px;
        padding: 8px 0;
    }
    
    .dropdown-item {
        margin: 0;
        border-radius: 0;
        padding: 12px 16px;
        border-bottom: 1px solid #f8f9fa;
    }
    
    .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .dropdown-item:hover {
        background-color: #f8f9fa;
        color: #007bff !important;
    }
    
    .dropdown-header {
        color: #212529 !important;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        padding: 10px 16px 6px 16px;
        margin: 0;
        background: linear-gradient(135deg, #ffc107, #ffca2c);
        border-bottom: 2px solid #e0a800;
        cursor: default;
        pointer-events: none;
        box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
    }
    
    .dropdown-divider {
        border-color: #dee2e6;
        margin: 4px 0;
    }
    
    /* Mobile navbar collapse professional styling */
    .navbar-collapse {
        background: var(--gradient-dark);
        border-radius: 0 0 8px 8px;
        border: 1px solid rgba(255, 193, 7, 0.3);
        border-top: none;
        margin-top: 1px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }
    
    .navbar-nav .nav-link {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0;
        padding: 12px 20px;
        color: #ffffff !important;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255, 193, 7, 0.15);
        color: #ffc107 !important;
    }
}

/* Hero Section */
.hero-section {
    background: var(--gradient-dark);
    color: var(--text-color);
    padding: 4rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 98px,
            rgba(255, 215, 0, 0.1) 100px
        );
    animation: scanLines 2s linear infinite;
}

@keyframes scanLines {
    0% { transform: translateY(0); }
    100% { transform: translateY(100px); }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    z-index: 2;
}

.feature-card {
    background: rgba(42, 42, 42, 0.9);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--text-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(42, 42, 42, 0.95);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
}

.feature-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.scaffold-visualization {
    animation: float 3s ease-in-out infinite;
}

/* Unified Modern Cards - Dark Theme */
.card, .dashboard-card, .management-card, .stat-card, .booking-card, 
.approval-card, .meeting-card, .inspection-card, .time-entry-card,
.register-card, .pricelist-card, .handover-card, .time-history-card,
.time-summary-card, .assignment-card, .project-card, .login-card,
.register-card, .import-card, .empty-state {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(42, 42, 42, 0.8));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    margin-bottom: 1.5rem;
    color: #ffffff;
    overflow: hidden;
    backdrop-filter: blur(15px);
}

.card:hover, .dashboard-card:hover, .management-card:hover,
.project-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.card-header {
    background: rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    color: #ffffff;
    padding: 1.25rem;
}

.card-body {
    background: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    padding: 1.5rem;
}

.card-footer {
    background: rgba(212, 175, 55, 0.1);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    color: #ffffff;
    padding: 1rem 1.5rem;
}

.card.dark-theme .card-title {
    color: #ffffff !important;
    font-weight: 600;
    margin: 0;
}

.card.dark-theme .card-text {
    color: #ffffff !important;
    line-height: 1.6;
}

/* Global text visibility fixes - specific to dark background cards only */
.card.dark-theme p, .card.dark-theme span, .card.dark-theme div, .card.dark-theme td, .card.dark-theme th {
    color: #ffffff !important;
}

.card.dark-theme .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.card .badge {
    color: #000 !important;
    font-weight: 600;
}

/* Table styling in cards */
.card .table {
    color: var(--text-dark) !important;
    background: transparent !important;
}

.card .table th {
    color: var(--text-dark) !important;
    border-color: var(--neutral-medium) !important;
    background: var(--neutral-light) !important;
}

.card .table td {
    color: var(--text-dark) !important;
    border-color: var(--neutral-medium) !important;
}

/* Import Category Cards - TSM Data Collection */
.import-category-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(42, 42, 42, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    color: #ffffff !important;
    backdrop-filter: blur(15px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.import-category-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.category-header {
    text-align: center;
    margin-bottom: 1rem;
}

.category-header .category-icon {
    font-size: 2.5rem;
    color: #d4af37;
    margin-bottom: 0.5rem;
    display: block;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.category-header h6 {
    color: #ffffff !important;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.category-header small {
    color: rgba(255, 255, 255, 0.7) !important;
}

.category-actions {
    margin: 1rem 0;
}

.category-actions .btn {
    font-size: 0.85rem;
    border-radius: 6px;
}

.category-stats {
    text-align: center;
    margin-top: auto;
}

.category-stats .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: #000 !important;
    font-weight: 600;
}

/* Stats Row Styling */
.stats-row {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-row:last-child {
    border-bottom: none;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    font-size: 0.9rem;
}

.stat-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff !important;
}

/* Progress Category Styling */
.progress-category {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-category .badge {
    color: #000 !important;
    font-weight: 600;
}

.progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.progress-bar {
    border-radius: 4px;
}

/* Statistics Cards - Clean Neutral Design */
.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--neutral-medium);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    color: var(--text-dark);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.stat-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
    border-color: var(--neutral-dark);
}

.stat-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--text-color);
    background: var(--gradient-primary);
    box-shadow: var(--shadow-green);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neutral-dark);
    margin: 0;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 500;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: var(--neutral-dark);
    box-shadow: var(--shadow-light);
}

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

.btn-success {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: var(--neutral-dark);
    box-shadow: var(--shadow-light);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
    color: #ffffff;
}

.btn-danger {
    background: var(--gradient-danger);
    color: var(--text-color);
    border-color: var(--danger-color);
    box-shadow: var(--shadow-red);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
    color: var(--text-color);
}

.btn-warning {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: var(--neutral-dark);
}

.btn-secondary {
    background: var(--neutral-light);
    color: var(--text-dark);
    border-color: var(--neutral-medium);
}

.btn-secondary:hover {
    background: var(--neutral-medium);
    border-color: var(--neutral-dark);
    color: var(--text-dark);
}

/* Forms - Clean Neutral Theme */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 0.75rem 1rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    font-weight: 400;
    backdrop-filter: blur(10px);
}

.form-control:focus, .form-select:focus {
    border-color: #0dcaf0 !important;
    box-shadow: 0 0 10px rgba(13, 202, 240, 0.3) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.form-label {
    font-weight: 600;
    color: #ffffff !important;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

.input-group-text {
    background: var(--background-dark);
    border: 2px solid rgba(255, 215, 0, 0.3);
    color: var(--primary-color);
}

/* Select dropdown options */
.form-select option {
    background: rgba(0, 0, 0, 0.9) !important;
    color: #ffffff !important;
}

/* Input group styling */
.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus {
    border-left: none;
}

/* Dark theme form inputs */
input[type="text"], input[type="password"], input[type="email"], 
input[type="number"], input[type="date"], input[type="time"], 
textarea, select {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px);
}

input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus,
input[type="number"]:focus, input[type="date"]:focus, input[type="time"]:focus,
textarea:focus, select:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-color: #0dcaf0 !important;
    box-shadow: 0 0 10px rgba(13, 202, 240, 0.3) !important;
}

/* Placeholder text styling for dark theme */
input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Select dropdown styling for dark theme */
select option {
    background: rgba(0, 0, 0, 0.9) !important;
    color: #ffffff !important;
}

/* Tables */
.table {
    background: var(--background-medium);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.table thead th {
    background: var(--gradient-dark);
    color: var(--primary-color);
    font-weight: 600;
    border: none;
    padding: 1rem;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.table tbody tr {
    transition: var(--transition);
    background: var(--background-medium);
    color: var(--text-color);
}

.table tbody tr:hover {
    background: rgba(255, 215, 0, 0.05) !important;
    color: inherit !important;
    transform: translateX(5px);
}

.table tbody tr:hover td {
    color: inherit !important;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    color: var(--text-color);
}

/* Badges */
.badge {
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    font-weight: 500;
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-light);
}

.alert-heading {
    font-weight: 600;
}

/* Project Selection */
.project-selection-container {
    padding: 2rem 0;
}

.project-card {
    background: var(--background-medium);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.project-header {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    text-align: center;
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.project-content {
    padding: 2rem;
    flex-grow: 1;
    background: var(--background-medium);
}

.project-title {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.project-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.project-meta {
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.project-footer {
    padding: 2rem;
    background: var(--background-light);
    border-top: 1px solid rgba(255, 215, 0, 0.3);
}

/* Unified Dashboard & Page Headers */
.dashboard-container, .page-header, .register-header {
    padding: 2rem 0;
}

.project-header, .page-header, .register-header {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(42, 42, 42, 0.8));
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.project-header::before, .page-header::before, .register-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #e6c843, #f8d866);
}

.page-header h1, .register-header h1, .project-header h1 {
    color: #ffffff !important;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-header .text-muted, .register-header .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Booking List */
.booking-description {
    font-weight: 500;
    color: var(--dark-color);
}

.booking-approval-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

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

.booking-details {
    padding: 1rem 0;
}

.booking-meta .meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #6c757d;
}

/* Morning Meeting */
.morning-meeting-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 1rem 0;
}

/* Meeting Timer Card - Softer Green */
.meeting-timer-card {
    background: linear-gradient(135deg, #6c757d, #8e9297);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.meeting-timer-card * {
    color: #000000 !important;
    text-shadow: none !important;
}

.meeting-timer-card h4,
.meeting-timer-card h5,
.meeting-timer-card h6,
.meeting-timer-card p,
.meeting-timer-card span,
.meeting-timer-card div,
.meeting-timer-card li,
.meeting-timer-card strong {
    color: #000000 !important;
    text-shadow: none !important;
}

.meeting-timer-card .timer-text {
    color: #000000 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.meeting-timer-card .btn {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Override morning meeting container styles for timer card specifically */
.morning-meeting-container .meeting-timer-card h1,
.morning-meeting-container .meeting-timer-card h2,
.morning-meeting-container .meeting-timer-card h3,
.morning-meeting-container .meeting-timer-card h4,
.morning-meeting-container .meeting-timer-card h5,
.morning-meeting-container .meeting-timer-card h6 {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.morning-meeting-container .meeting-timer-card p,
.morning-meeting-container .meeting-timer-card span,
.morning-meeting-container .meeting-timer-card div,
.morning-meeting-container .meeting-timer-card li {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.morning-meeting-container .meeting-timer-card .timer-text {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 600;
}

.meeting-timer-card h5,
.meeting-timer-card p,
.meeting-timer-card span,
.meeting-timer-card li {
    color: #000000 !important;
    text-shadow: none !important;
}

.meeting-timer-card .card-header h5 {
    color: #000000 !important;
    font-weight: 600;
    text-shadow: none !important;
}

.timer-display {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.timer-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Meeting Duration Guide */
.meeting-duration-guide {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border-left: 4px solid #f39c12;
}

.duration-target {
    color: #f39c12;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.duration-importance {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.duration-reasons {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.duration-reasons li {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid #27ae60;
    font-size: 0.9rem;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.duration-reasons li:last-child {
    margin-bottom: 0;
}

/* Document Reminder Card */
.document-reminder-card {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 16px;
    border: 2px solid #e74c3c;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    margin-bottom: 2rem;
}

.document-reminder-card .card-header {
    background: linear-gradient(135deg, #c0392b, #a93226);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.reminder-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
}

.doc-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
}

.doc-item.urgent {
    border-left: 4px solid #f39c12;
    background: rgba(243, 156, 18, 0.2);
}

.doc-item.success {
    border-left: 4px solid #27ae60;
    background: rgba(39, 174, 96, 0.2);
}

.work-summary-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 3px solid #3498db;
}

.work-title {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Small Stats Grid for Meeting Statistics */
.stats-grid-small {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.stats-grid-small .stat-card {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 1rem;
    text-align: center;
    border-radius: 12px;
}

.stats-grid-small .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 0.25rem;
}

.stats-grid-small .stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-item-small {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item-small.success {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.2);
}

.stat-item-small .stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    display: block;
    margin-bottom: 0.25rem;
}

.stat-item-small .stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Overdue Scaffolds Alert */
.overdue-scaffolds-alert {
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
}

.overdue-scaffolds-alert .alert-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: 2px solid #e74c3c;
    color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.overdue-scaffolds-alert .alert-heading {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.overdue-scaffold-list {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    max-height: 200px;
    overflow-y: auto;
}

.overdue-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid #f39c12;
}

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

.scaffold-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.scaffold-info strong {
    color: #ffffff;
    font-weight: 600;
}

.location-info {
    color: rgba(255, 255, 255, 0.9);
}

.days-overdue {
    font-weight: 600;
    background: rgba(231, 76, 60, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.scaffold-details {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7) !important;
}

.more-scaffolds {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.action-buttons .btn {
    margin-bottom: 0.5rem;
}

/* Quiz Text Visibility Fix - Force black text in all quiz components */
.quiz-card,
.quiz-card *,
.quiz-question-card,
.quiz-question-card *,
.option-content,
.option-content *,
.question-text,
.question-text *,
.form-check-label,
.form-check-label *,
.answer-options,
.answer-options *,
.quiz-container,
.quiz-container *,
.prize-item,
.prize-item *,
.leaderboard-item,
.leaderboard-item *,
.quiz-description,
.quiz-description *,
.quiz-start-section,
.quiz-start-section *,
.quiz-completed-section,
.quiz-completed-section * {
    color: #000000 !important;
}

/* Quiz card bodies specifically */
.quiz-card .card-body,
.quiz-card .card-body *,
.quiz-question-card .card-body,
.quiz-question-card .card-body * {
    color: #000000 !important;
}

/* Quiz specific elements */
.quiz-card h6,
.quiz-card li,
.quiz-card p,
.quiz-card strong,
.quiz-card div {
    color: #000000 !important;
}

/* Override any existing quiz styling that might cause white text */
.quiz-container .text-muted,
.quiz-card .text-muted,
.quiz-question-card .text-muted {
    color: #000000 !important;
}

.welcome-header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.safety-emphasis-card {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: var(--border-radius);
    border: 2px solid #e74c3c;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.safety-reminder {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.safety-badge {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid #27ae60;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.think-card {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    border-radius: var(--border-radius);
    border: 1px solid #34495e;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(52, 73, 94, 0.3);
}

.think-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(52, 73, 94, 0.5);
    border-color: #3498db;
}

.meeting-card {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: var(--border-radius);
    border: 1px solid #34495e;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(52, 73, 94, 0.3);
}

.meeting-card .card-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 1rem;
    border-bottom: 1px solid #3498db;
}

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

/* Morning Meeting Form Enhancements */
.morning-meeting-container .form-control {
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    border: 1px solid #95a5a6;
    color: #2c3e50;
    border-radius: 8px;
}

.morning-meeting-container .form-control:focus {
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    color: #2c3e50;
}

.morning-meeting-container .form-label {
    color: #ecf0f1;
    font-weight: 500;
}

.morning-meeting-container .btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.morning-meeting-container .btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.morning-meeting-container .btn-outline-light {
    border: 2px solid #ecf0f1;
    color: #ecf0f1;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.morning-meeting-container .btn-outline-light:hover {
    background: #ecf0f1;
    color: #2c3e50;
    transform: translateY(-2px);
}

.work-item {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
    text-align: center;
}

.work-item h6 {
    color: #ffffff !important;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.work-item p {
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.work-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.work-details {
    margin-top: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #34495e;
}

.weather-display {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.weather-display h6 {
    color: #ffffff !important;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.weather-display p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    margin: 0;
}

.team-member {
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid #3498db;
    color: #2c3e50;
}

.avatar-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    opacity: 0.6;
}

.empty-state h4 {
    color: #6c757d;
    margin-bottom: 1rem;
}

.empty-state .badge {
    margin: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Booking Tracking */
.booking-tracking-card {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(0, 0, 0, 0.9));
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.booking-tracking-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2);
}

.booking-tracking-card .card-header {
    background: linear-gradient(135deg, var(--primary-color), #e6ac00);
    border-bottom: 1px solid var(--primary-color);
}

.booking-details {
    margin-bottom: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 193, 7, 0.1);
}

.detail-row:last-child {
    border-bottom: none;
}

/* Progress Timeline */
.booking-timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    opacity: 0.5;
    transition: var(--transition);
}

.timeline-item.active {
    opacity: 1;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.2);
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-right: 1rem;
}

.timeline-item.active .timeline-icon {
    background: var(--primary-color);
    color: black;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    display: block;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.timeline-date {
    display: block;
    font-size: 0.875rem;
    color: #e0e0e0;
}

/* Search and Filter */
.input-group .form-control {
    border-color: var(--primary-color);
}

.input-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.input-group-text {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: black;
}

/* TAK Navbar Logo styling */
.tak-navbar-logo {
    height: 50px;
    width: auto;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Handover Cards */
.handover-card {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(0, 0, 0, 0.9));
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.handover-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2);
}

.handover-card .card-header {
    background: linear-gradient(135deg, var(--primary-color), #e6ac00);
    border-bottom: 1px solid var(--primary-color);
}

.handover-details {
    margin-bottom: 1rem;
}

.handover-notes {
    background: rgba(255, 193, 7, 0.1);
    border-radius: 5px;
    padding: 1rem;
    border-left: 4px solid var(--primary-color);
}

.team-member {
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-light);
}

/* Time Tracking */
.time-entry-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
}

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

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Scaffold Register */
.scaffold-tag {
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
}

.scaffold-row[data-status="closed"] {
    background: rgba(255, 71, 87, 0.1);
}

.scaffold-row[data-status="tampered"] {
    background: rgba(255, 159, 67, 0.1);
}

/* Inspection Tracker */
.inspection-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--success-color);
}

.inspection-item.overdue {
    border-left-color: var(--danger-color);
    background: rgba(255, 71, 87, 0.05);
}

.inspection-item.due-soon {
    border-left-color: var(--warning-color);
    background: rgba(255, 159, 67, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Check In/Out */
.check-in-out-container {
    padding: 2rem 0;
}

.status-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    padding: 3rem;
    text-align: center;
}

.status-icon {
    margin-bottom: 2rem;
}

.status-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.status-description {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.time-summary {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 2rem;
}

.time-detail {
    text-align: center;
}

.current-time {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

/* Login/Register */
.login-container, .register-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
}

.login-card, .register-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
}

.login-card .card-header, .register-card .card-header {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
}

.login-card .card-body, .register-card .card-body {
    padding: 3rem;
}

.login-card .card-footer, .register-card .card-footer {
    background: #f8f9fa;
    text-align: center;
    padding: 2rem;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-color);
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    color: rgba(255, 215, 0, 0.5);
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.empty-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Feature Grid */
.feature-grid {
    margin: 3rem 0;
}

.feature-highlight {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
}

.feature-highlight:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

/* Role Stats */
.role-stat {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.role-count {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.role-name {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .project-card {
        margin-bottom: 2rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .status-card {
        padding: 2rem;
    }
    
    .login-card .card-body, .register-card .card-body {
        padding: 2rem;
    }
}

/* Print Styles */
@media print {
    .navbar, .btn, .modal, .alert {
        display: none !important;
    }
    
    .card, .table {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
    
    .card-header {
        background: #f8f9fa !important;
        color: #333 !important;
    }
}

/* Training Center specific text visibility fixes */
.training-card .card-body,
.training-card .module-item,
.training-card .reference-section {
    color: #2c3e50 !important;
}

.training-card .card-body h6,
.training-card .module-item h6,
.training-card .card-body p,
.training-card .module-item p,
.training-card .card-body li,
.training-card .module-item li {
    color: #2c3e50 !important;
}

.training-card .card-body .text-dark,
.training-card .module-item .text-dark {
    color: #2c3e50 !important;
}

.training-card .table,
.training-card .table th,
.training-card .table td {
    color: #2c3e50 !important;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-color: #f8f9fa;
        --light-color: #343a40;
    }
    
    body {
        background: #1a1a1a;
        color: #f8f9fa;
    }
    
    .card, .dashboard-card, .management-card {
        background: #2d3748;
        color: #f8f9fa;
    }
    
    .card-header {
        background: #374151;
    }
    
    .table {
        background: #2d3748;
        color: #f8f9fa;
    }
    
    .form-control, .form-select {
        background: #374151;
        color: #f8f9fa;
        border-color: #4a5568;
    }
}

/* Dashboard Widget System */
.dashboard-widgets {
    padding: 0;
}

.customize-panel {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(0, 0, 0, 0.6));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.customize-panel h5 {
    color: var(--primary-color) !important;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.widget-toggles .form-check {
    margin-bottom: 0.5rem;
}

.widget-toggles .form-check-label {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.customize-panel .form-label {
    color: white !important;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.customize-panel .form-select {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    color: white !important;
}

.customize-panel .form-select option {
    background: #2a2a2a;
    color: white;
}

.panel-actions {
    margin-top: 1rem;
    text-align: right;
}

.widget-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.widget-container.customize-mode {
    gap: 2rem;
}

.dashboard-widget {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(0, 0, 0, 0.4));
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.4);
}

.widget-header {
    background: linear-gradient(135deg, var(--primary-color), #e6c843);
    color: var(--dark-color);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.widget-header h5 {
    margin: 0;
    font-size: 1.1rem;
}

.widget-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-drag-handle {
    cursor: grab;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.widget-drag-handle:hover {
    opacity: 1;
}

.widget-drag-handle:active {
    cursor: grabbing;
}

.widget-content {
    padding: 1.5rem;
}

.stats-grid-widget {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

/* Fix text colors in dashboard widget statistics */
.stats-grid-widget .stat-item {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(0, 0, 0, 0.4));
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.stats-grid-widget .stat-item:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.stats-grid-widget .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stats-grid-widget .stat-icon.primary {
    background: var(--primary-color);
    color: var(--dark-color);
}

.stats-grid-widget .stat-icon.warning {
    background: var(--warning-color);
    color: var(--dark-color);
}

.stats-grid-widget .stat-icon.success {
    background: var(--success-color);
    color: white;
}

.stats-grid-widget .stat-icon.danger {
    background: var(--danger-color);
    color: white;
}

.stats-grid-widget .stat-info {
    display: flex;
    flex-direction: column;
}

.stats-grid-widget .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff !important;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.stats-grid-widget .stat-label {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.actions-grid-widget {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.action-category {
    margin-bottom: 1rem;
}

.action-category-title {
    color: var(--primary-color) !important;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 0.5rem;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

/* Activity List Widget Styles */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.activity-icon.standard {
    background: var(--primary-color);
    color: var(--dark-color);
}

.activity-icon.alteration {
    background: var(--warning-color);
    color: var(--dark-color);
}

.activity-icon.custom {
    background: var(--info-color);
    color: white;
}

.activity-details {
    flex: 1;
    min-width: 0;
}

.activity-title {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.activity-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.booking-id {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
}

.status-mini {
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-mini.pending {
    background: var(--warning-color);
    color: var(--dark-color);
}

.status-mini.approved {
    background: var(--success-color);
    color: white;
}

.status-mini.completed {
    background: var(--info-color);
    color: white;
}

.date {
    color: rgba(255, 255, 255, 0.6) !important;
}

.empty-activity {
    text-align: center;
    padding: 2rem 1rem;
    color: rgba(255, 255, 255, 0.6) !important;
}

.empty-activity i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: rgba(212, 175, 55, 0.4);
}

.empty-activity p {
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 0;
}

/* Quick Actions Widget Styles */
.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(0, 0, 0, 0.3));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 80px;
    color: white !important;
}

.action-btn i {
    color: #b8941f !important;
    font-size: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.8));
}

.action-btn span {
    color: white !important;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.action-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(0, 0, 0, 0.4));
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
    text-decoration: none;
    color: white !important;
}

.action-btn:hover i {
    color: #9a7c1a !important;
    transform: scale(1.1);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

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

.action-btn span {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 0.85rem;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.action-btn.primary i {
    color: var(--primary-color);
}

.action-btn.success i {
    color: var(--success-color);
}

.action-btn:hover span {
    color: #ffffff !important;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

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

.notification-item.urgent {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.notification-item.warning {
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.notification-item.info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.notification-item.success {
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-item.urgent .notification-icon {
    background: var(--danger-color);
    color: white;
}

.notification-item.warning .notification-icon {
    background: var(--warning-color);
    color: var(--dark-color);
}

.notification-item.info .notification-icon {
    background: var(--info-color);
    color: white;
}

.notification-item.success .notification-icon {
    background: var(--success-color);
    color: white;
}

.notification-content h6 {
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.notification-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
}

.dashboard-controls {
    display: flex;
    align-items: center;
}

.save-status {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    transition: all 0.3s ease;
}

.save-status.success {
    background: var(--success-color);
}

.save-status.error {
    background: var(--danger-color);
}

/* Sortable ghost styles */
.widget-ghost {
    opacity: 0.4;
    transform: rotate(2deg);
    background: rgba(212, 175, 55, 0.1);
    border: 2px dashed var(--primary-color);
}

.widget-chosen {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
    z-index: 1000;
}

.widget-drag {
    transform: rotate(-2deg);
    opacity: 0.8;
}

.customize-mode .dashboard-widget {
    cursor: move;
    border: 1px dashed rgba(212, 175, 55, 0.5);
    transition: all 0.3s ease;
}

.customize-mode .widget-drag-handle {
    opacity: 1;
    cursor: grab;
}

.customize-mode .widget-drag-handle:active {
    cursor: grabbing;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .widget-container {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .stats-grid-widget {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .actions-grid-widget {
        grid-template-columns: 1fr;
    }
    
    .dashboard-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .customize-panel .row {
        flex-direction: column;
    }
    
    .notification-item {
        flex-direction: column;
        text-align: center;
    }
    
    .widget-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Country and Certification Logo Styles */
.country-logo-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 8px 12px;
    margin: 2px;
    display: inline-block;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: var(--transition);
}

.country-logo-container:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
    transform: translateY(-2px);
}

.country-logo {
    height: 50px;
    width: auto;
    display: block;
    filter: brightness(1.1) contrast(1.1);
}

.country-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.flag-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.country-flag {
    width: 32px;
    height: 20px;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.country-flag:hover {
    transform: scale(1.1);
}

.cert-logo {
    height: 40px;
    width: auto;
    border-radius: 4px;
    transition: var(--transition);
    margin: 2px;
}

.cert-logo:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-light);
}

.cert-logo-uniform {
    height: 100px;
    width: 100px;
    transition: var(--transition);
    margin: 0;
    object-fit: contain;
    filter: brightness(1.4) contrast(1.3) saturate(1.2);
}

.cert-logo-uniform:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-light);
    filter: brightness(1.2);
}

/* Logo placement on different pages */
.page-header-logos {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.page-header-logos .country-logo-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 10px;
}

.page-header-logos .country-logo {
    height: 32px;
}

.page-header-logos .cert-logo {
    height: 36px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .country-logo-container {
        padding: 6px 8px;
        margin: 1px;
    }
    
    .country-logo {
        height: 40px;
    }
    
    .country-flag {
        width: 28px;
        height: 18px;
    }
    
    .cert-logo {
        height: 34px;
    }
}

/* Pricelist Table Text Visibility Fix */
.table td .text-dark {
    color: #000 !important;
    font-weight: 500;
}

.table td .text-dark.fw-bold {
    font-weight: 700 !important;
}

.table td {
    background: rgba(255, 255, 255, 0.98) !important;
}

/* User Management Table Text Fix */
#usersTable.table-dark td,
#usersTable.table-dark td.text-light {
    color: #ffffff !important;
}

#usersTable.table-dark td .fw-bold {
    color: #ffffff !important;
}

/* STIB Authorization Styling */
.stib-authorization-section {
    background: rgba(255, 215, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
    margin-bottom: 1rem;
}

.authorization-statement {
    background: rgba(255, 215, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
    text-align: center;
}

.authorization-statement h6 {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    letter-spacing: 0.5px;
}

.stib-authorization-section .cert-logo {
    filter: brightness(1.2) contrast(1.1);
}

.stib-authorization-section h6 {
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    letter-spacing: 0.3px;
}

/* Management Tables Text Visibility Fix */
.management-card .table {
    background: rgba(255, 255, 255, 0.98) !important;
}

.management-card .table td,
.management-card .table th {
    background: rgba(255, 255, 255, 0.98) !important;
    color: #212529 !important;
    border-color: rgba(0, 0, 0, 0.125) !important;
}

.management-card .table tbody tr:hover {
    background: rgba(0, 102, 204, 0.1) !important;
}

.management-card .table thead th {
    background: rgba(248, 249, 250, 0.98) !important;
    color: #495057 !important;
    font-weight: 600 !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.125) !important;
}

.management-card .table .badge {
    color: #fff !important;
}

.management-card .table .btn {
    color: inherit !important;
}

.management-card .table .btn-outline-primary {
    color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.management-card .table .btn-outline-primary:hover {
    background-color: #0d6efd !important;
    color: #fff !important;
}

.management-card .table strong {
    color: #212529 !important;
}

/* Categorized Dropdown Styles */
#pricelist_item_id option[disabled] {
    color: #0066cc !important;
    font-weight: bold !important;
    background-color: #f8f9fa !important;
    font-style: italic;
}

/* Quick Access Inspection Shortcuts */
.quick-actions-header {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: auto;
}

.quick-actions-header .btn-sm {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
}

.quick-actions-header .btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.quick-actions-header .btn-danger:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.quick-actions-header .btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.quick-actions-header .btn-warning:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
}

.notification-item.danger {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(192, 57, 43, 0.05));
    border-left: 4px solid #e74c3c;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.notification-item.danger .notification-title {
    color: #e74c3c;
    font-weight: 700;
    font-size: 0.9rem;
}

.notification-actions {
    margin-top: 0.5rem;
}

.notification-actions .btn-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.view-all-notifications {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-all-notifications:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Mobile responsive adjustments for shortcuts */
@media (max-width: 768px) {
    .quick-actions-header {
        flex-direction: column;
        gap: 0.25rem;
        align-items: stretch;
        width: 100%;
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .quick-actions-header .btn-sm {
        width: 100%;
        margin-bottom: 0.25rem;
        font-size: 0.75rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .notification-item.danger .notification-content {
        padding-right: 0;
    }
    
    .notification-actions {
        text-align: left;
    }
}

/* Mobile optimization for quiz pages */
@media (max-width: 768px) {
    /* Quiz container mobile adjustments */
    .quiz-container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    /* Quiz header mobile responsive */
    .container-fluid .row .col-12 .d-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem;
    }
    
    .container-fluid .row .col-12 .d-flex .text-end {
        text-align: left !important;
        width: 100%;
    }
    
    /* Quiz card mobile adjustments */
    .quiz-card {
        margin-bottom: 1rem;
    }
    
    /* Quiz information mobile layout */
    .quiz-card .row .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Quiz start section mobile */
    .quiz-start-section .row .col-md-8,
    .quiz-start-section .row .col-md-4 {
        margin-bottom: 1rem;
    }
    
    .quiz-start-section .col-md-4 {
        text-align: left !important;
    }
    
    /* Quiz question card mobile */
    .quiz-question-card {
        margin: 0 10px 20px 10px;
        padding: 10px;
    }
    
    .quiz-question-card .card-body {
        padding: 1rem;
    }
    
    /* Question text mobile */
    .question-text {
        font-size: 1rem;
        padding: 12px;
        line-height: 1.5;
    }
    
    /* Answer options mobile */
    .option-content {
        padding: 12px;
        margin-bottom: 10px;
        font-size: 0.9rem;
    }
    
    /* Progress section mobile */
    .progress-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    /* Quiz actions mobile */
    .quiz-actions {
        padding-top: 15px;
    }
    
    .quiz-actions .btn {
        width: 100%;
        margin-bottom: 10px;
        padding: 12px;
        font-size: 1rem;
    }
    
    /* Timer mobile */
    .timer-display {
        font-size: 1.5rem !important;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    /* Leaderboard mobile */
    .leaderboard-item {
        padding: 10px;
        margin-bottom: 8px;
    }
    
    .leaderboard-item .row > div {
        text-align: center;
        margin-bottom: 5px;
    }
    
    /* Prize section mobile */
    .prize-item {
        margin-bottom: 1rem;
        text-align: center;
    }
    
    /* Quiz statistics mobile */
    .quiz-stats .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Mobile font size adjustments */
    .quiz-card h5,
    .quiz-card h6 {
        font-size: 1.1rem;
    }
    
    .quiz-card p,
    .quiz-card li {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Badge adjustments for mobile */
    .badge {
        font-size: 0.8rem !important;
        padding: 8px 12px !important;
    }
    
    /* Alert mobile adjustments */
    .alert {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .alert h6 {
        font-size: 1rem;
    }
    
    /* Categorized actions mobile */
    .action-category {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .category-title {
        font-size: 0.9rem;
        padding: 0.4rem 0;
        padding-left: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .action-btn {
        padding: 0.75rem;
        font-size: 0.8rem;
        gap: 0.4rem;
    }
    
    .action-btn i {
        font-size: 1.3rem;
    }
}

/* Morning Meeting Text Visibility Improvements */
.morning-meeting-container h1,
.morning-meeting-container h2,
.morning-meeting-container h3,
.morning-meeting-container h4,
.morning-meeting-container h5,
.morning-meeting-container h6 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.morning-meeting-container p,
.morning-meeting-container span,
.morning-meeting-container div,
.morning-meeting-container li {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.morning-meeting-container .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Enhanced card backgrounds in morning meeting */
.morning-meeting-container .card,
.morning-meeting-container .meeting-card {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(10px);
}

.morning-meeting-container .card-header {
    background: rgba(255, 255, 255, 0.15) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.morning-meeting-container .card-body {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Empty state and content sections */
.morning-meeting-container .empty-state {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.morning-meeting-container .empty-state h6 {
    color: #ffffff !important;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.morning-meeting-container .empty-state p {
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

#pricelist_item_id option:not([disabled]) {
    color: #333;
    padding-left: 15px;
}

/* Country Header Styles */
.country-header {
    color: var(--primary-color);
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    background: var(--gradient-dark);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

/* Light grey placeholder text */
::placeholder {
    color: #6c757d !important;
    opacity: 1;
}

.form-control::placeholder {
    color: #6c757d !important;
}

/* Fix select dropdown text visibility in dark theme */
.form-select {
    color: #000 !important;
    background-color: #fff !important;
}

.form-select option {
    color: #000 !important;
    background-color: #fff !important;
}

.form-select option[disabled] {
    color: #0066cc !important;
    background-color: #f8f9fa !important;
    font-weight: bold !important;
}

/* TSM Contact Information Styling */
.contact-info-section {
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    margin-top: 1rem;
    padding-top: 1rem;
}

.contact-header h6 {
    color: #d4af37 !important;
    font-weight: bold;
    margin-bottom: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.contact-role {
    font-size: 0.85rem;
    color: #d4af37;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.contact-name {
    font-size: 1rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-link {
    display: flex;
    align-items: center;
    color: #e0e0e0 !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #d4af37 !important;
}

.contact-link i {
    width: 16px;
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.no-contacts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px dashed rgba(212, 175, 55, 0.3);
}

.no-contacts p {
    margin: 0;
    color: #999 !important;
}

/* Mobile responsiveness for contact cards */
@media (max-width: 576px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        padding: 0.75rem;
    }
    
    .contact-details {
        gap: 0.4rem;
    }
}

/* Modern Booking Page Styling */
.modern-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modern-card .card-header {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.8), rgba(255, 193, 7, 0.6));
    border: none;
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.modern-table {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    overflow: hidden;
}

.modern-table thead {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.8), rgba(255, 193, 7, 0.6));
}

.modern-table tbody tr {
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    color: #ffffff;
}

.modern-table tbody tr td {
    color: #ffffff !important;
}

.modern-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.05) !important;
    color: inherit !important;
    transform: scale(1.01);
}

.modern-table tbody tr:hover td {
    color: inherit !important;
}

.modern-table td {
    padding: 12px 16px;
    vertical-align: middle;
    border: none;
    color: #ffffff !important;
}

.modern-table th {
    color: #000000 !important;
}

/* Bootstrap table overrides for dark theme */
.table {
    background: rgba(0, 0, 0, 0.4) !important;
    color: #ffffff !important;
}

.table td,
.table th {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Fix for white text on white background in table cells */
.table td {
    background: rgba(0, 0, 0, 0.3) !important;
    color: #ffffff !important;
}

.table td.bg-white,
.table td[style*="background-color: white"],
.table td[style*="background: white"] {
    background: rgba(0, 0, 0, 0.3) !important;
    color: #ffffff !important;
}

.table tbody tr {
    background: rgba(0, 0, 0, 0.3) !important;
}

.table tbody tr:hover {
    background: rgba(212, 175, 55, 0.05) !important;
    color: #ffffff !important;
}

.table tbody tr:hover td {
    color: #ffffff !important;
}

.table thead th {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.8), rgba(255, 193, 7, 0.6)) !important;
    color: #000000 !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
}

/* Ensure all text elements in tables are visible */
.table tbody td * {
    color: #ffffff !important;
}

.table tbody td span,
.table tbody td div,
.table tbody td p,
.table tbody td a {
    color: #ffffff !important;
}

/* Force all Bootstrap classes to use proper colors in tables */
.table .badge {
    color: #000000 !important;
}

.table .badge-success {
    background-color: #28a745 !important;
    color: #ffffff !important;
}

.table .badge-warning {
    background-color: #ffc107 !important;
    color: #000000 !important;
}

.table .badge-danger {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}

.table .badge-primary {
    background-color: #007bff !important;
    color: #ffffff !important;
}

.table .badge-info {
    background-color: #17a2b8 !important;
    color: #ffffff !important;
}

/* Override any inline styles that might cause white text on white background */
.table [style*="color: white"],
.table [style*="color: #ffffff"],
.table [style*="color: #fff"] {
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.3) !important;
}

.booking-item-info {
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Form styling improvements */
.form-label {
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control, .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: white;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #d4af37;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
    color: white;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

.btn-check:checked + .btn-outline-light {
    background: #d4af37;
    border-color: #d4af37;
    color: #000;
    font-weight: bold;
}

/* Alert styling improvements */
.alert {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: white;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.alert-info {
    background: rgba(13, 202, 240, 0.1);
    border-color: rgba(13, 202, 240, 0.3);
    color: #0dcaf0;
}

/* Badge improvements */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

/* Button group improvements */
.btn-group .btn {
    border-radius: 8px;
    margin: 0 2px;
    transition: all 0.3s ease;
}

.btn-group .btn:first-child {
    margin-left: 0;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* Stats Cards for Booking Pages */
.stats-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: center;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.stats-card .stats-icon {
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 0.5rem;
}

.stats-card .stats-content h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff !important;
    margin-bottom: 0.25rem;
}

.stats-card .stats-content p {
    color: #ffffff !important;
    margin: 0;
    font-size: 0.9rem;
}

/* Modern Booking Cards */
.booking-card-modern {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.booking-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(212, 175, 55, 0.4);
}

.booking-header {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.8), rgba(255, 193, 7, 0.6));
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-id {
    font-weight: 600;
    color: #000;
    font-size: 1.1rem;
}

.booking-status .status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-approved {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-rejected {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.status-completed {
    background: rgba(13, 110, 253, 0.2);
    color: #0d6efd;
    border: 1px solid rgba(13, 110, 253, 0.3);
}

.booking-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.2);
}

.booking-type {
    margin-bottom: 1rem;
}

.type-badge {
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.type-standard {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.type-custom {
    background: rgba(13, 202, 240, 0.2);
    color: #0dcaf0;
    border: 1px solid rgba(13, 202, 240, 0.3);
}

.type-alteration {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.booking-description {
    margin-bottom: 1rem;
    flex: 1;
}

.booking-description .item-code {
    color: #d4af37 !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.booking-description .item-desc,
.booking-description .custom-desc {
    color: #ffffff !important;
    line-height: 1.4;
    margin: 0;
    font-size: 0.9rem;
}

.booking-details {
    margin-bottom: 1rem;
}

.detail-item {
    color: #ffffff !important;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.detail-item i {
    color: #d4af37 !important;
    width: 16px;
}

.detail-item span {
    color: #ffffff !important;
}

.booking-requester {
    margin-bottom: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-requester .text-muted {
    color: #ffffff !important;
}

.booking-requester small {
    color: #ffffff !important;
}

.booking-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.booking-actions .btn {
    flex: 1;
    min-width: auto;
    font-size: 0.8rem;
}

/* Empty state styling for booking pages */
.empty-state {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 3rem 2rem;
    margin: 2rem 0;
}

.empty-state .text-dark {
    color: #ffffff !important;
}

.empty-state .text-muted {
    color: #d4af37 !important;
}

/* Quantity info styling */
.quantity-info {
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.quantity-info small {
    color: #ffffff !important;
}

/* Form styling fixes for booking pages */
.form-select, .form-control, textarea.form-control {
    background-color: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    color: #ffffff !important;
}

.form-select:focus, .form-control:focus, textarea.form-control:focus {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(212, 175, 55, 0.6) !important;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25) !important;
    color: #ffffff !important;
}

.form-select option {
    background-color: rgba(0, 0, 0, 0.9) !important;
    color: #ffffff !important;
}

.alert {
    background-color: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    color: #ffffff !important;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.2) !important;
    border-color: rgba(255, 193, 7, 0.4) !important;
    color: #ffffff !important;
}

.alert-info {
    background-color: rgba(13, 202, 240, 0.2) !important;
    border-color: rgba(13, 202, 240, 0.4) !important;
    color: #ffffff !important;
}

.form-text {
    color: #ffffff !important;
}

.form-text small {
    color: #ffffff !important;
}

.text-muted {
    color: #ffffff !important;
}

#operationQuantityInfo {
    color: #ffffff !important;
}

.form-text .text-muted {
    color: #ffffff !important;
}

.form-text strong {
    color: #ffffff !important;
}

/* Verification and pricing boxes text visibility */
#verificationSection .text-light,
#verificationSection .text-white,
#verificationSection .small {
    color: #ffffff !important;
}

#verificationSection .form-text {
    color: #ffffff !important;
}

#verificationSection .card-body {
    color: #ffffff !important;
}

#verificationSection .card-body .text-light,
#verificationSection .card-body .text-white,
#verificationSection .card-body .small {
    color: #ffffff !important;
}

#verificationSection .alert {
    color: #ffffff !important;
}

/* Mobile responsiveness for booking pages */
@media (max-width: 768px) {
    .stats-card {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .stats-card .stats-icon {
        font-size: 1.5rem;
    }
    
    .stats-card .stats-content h3 {
        font-size: 1.5rem;
    }
    
    .booking-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .booking-actions {
        flex-direction: column;
    }
    
    .booking-actions .btn {
        flex: none;
    }
}


/* CRITICAL: Form label visibility fix - override all other styles */
label, .form-label, .card label, .card .form-label, 
.card-body label, .card-body .form-label,
form label, form .form-label {
    color: #ffffff !important;
    font-weight: 500 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9) !important;
    margin-bottom: 0.5rem !important;
}

/* Card headers bright white text for visibility */
.card-header label, .card-header .form-label,
.card-header h1, .card-header h2, .card-header h3, 
.card-header h4, .card-header h5, .card-header h6,
.card-header span, .card-header p, .card-header div,
.card-header .mb-0, .card-header i {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8) !important;
    font-weight: 500 !important;
}

/* Form help text visibility */
.form-text, .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
}

/* Ensure volume display is always visible and properly styled */
#volume-display {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #28a745 !important;
    font-weight: bold !important;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* Compact Booking List Styles */
.booking-list-compact {
    background: transparent;
}

.booking-item-compact {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #d4af37;
    margin-bottom: 8px;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-item-compact:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: #ffd700;
    transform: translateX(2px);
}

.booking-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-main-info {
    flex: 1;
}

.booking-header-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.booking-id {
    font-weight: 600;
    color: #d4af37;
    font-size: 0.9rem;
}

.booking-date {
    font-size: 0.8rem;
    color: #aaa;
}

.scaffold-what {
    color: white;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 4px;
}

.scaffold-when-where {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: #ccc;
}

.scaffold-when-where span {
    display: flex;
    align-items: center;
}

.booking-status-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.status-badge-compact {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.status-badge-compact.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-badge-compact.status-approved {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-badge-compact.status-rejected {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.status-badge-compact.status-completed {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

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

.btn-xs {
    padding: 4px 6px;
    font-size: 0.7rem;
    border-radius: 4px;
}

/* Clickable Statistics Cards */
.stats-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.2s ease;
}

.stats-card-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-2px);
}

.stats-card-link:hover .stats-card {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.stats-card-link.active .stats-card {
    border: 2px solid #d4af37;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .booking-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .booking-status-actions {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }
    
    .scaffold-when-where {
        flex-direction: column;
        gap: 4px;
    }
}

/* Chat Interface Styles */
.chat-container {
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ai-message, .user-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-message .message-avatar {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.message-content {
    max-width: 70%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.message-bubble {
    padding: 15px 18px;
    border-radius: 18px;
    color: white;
}

.ai-bubble {
    background: linear-gradient(135deg, #495057, #6c757d);
    border-bottom-left-radius: 6px;
}

.user-bubble {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-bottom-right-radius: 6px;
}

.message-time {
    font-size: 0.75rem;
    color: #adb5bd;
    padding: 0 10px;
}

.chat-input-container {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 8px 8px;
}

.chat-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 25px;
    padding: 12px 20px;
}

.chat-input::placeholder {
    color: #adb5bd;
}

.chat-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #28a745;
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.chat-send-btn {
    border-radius: 25px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
}

.chat-send-btn:hover {
    background: linear-gradient(135deg, #218838, #1da58c);
    transform: translateY(-1px);
}

.recommendations-section {
    margin-top: 20px;
    padding: 15px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.recommendation-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.recommendation-card h6 {
    color: #28a745;
    margin-bottom: 8px;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #adb5bd;
    font-style: italic;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: #28a745;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* User Management Specific Styles */
.role-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.role-stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 193, 7, 0.3);
    transform: translateY(-2px);
}

.role-count {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.role-name {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Remove extra user management wrapper if exists */
.user-management-container {
    background: transparent;
}

/* Mobile optimizations for user management */
@media (max-width: 768px) {
    .role-stat-card {
        padding: 10px;
    }
    
    .role-count {
        font-size: 1.5rem;
    }
    
    .role-name {
        font-size: 0.8rem;
    }
    
    .btn-group .btn {
        padding: 0.25rem 0.5rem;
    }
    
    .notification-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .notification-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Notification Timeline Styling for Dashboard Widget */
.notification-timeline {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid var(--warning-color);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.notification-item:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: translateX(2px);
}

.notification-item.priority-urgent {
    border-left-color: var(--danger-color);
}

.notification-item.priority-high {
    border-left-color: #ff8c00;
}

.notification-item.priority-medium {
    border-left-color: var(--warning-color);
}

.notification-item.priority-low {
    border-left-color: var(--success-color);
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.notification-icon.urgent {
    background: rgba(220, 53, 69, 0.2);
    color: var(--danger-color);
}

.notification-icon.high {
    background: rgba(255, 140, 0, 0.2);
    color: #ff8c00;
}

.notification-icon.medium {
    background: rgba(255, 193, 7, 0.2);
    color: var(--warning-color);
}

.notification-icon.low {
    background: rgba(40, 167, 69, 0.2);
    color: var(--success-color);
}

.notification-content {
    flex: 1;
}

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

.notification-title {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.notification-time {
    color: var(--neutral-medium);
    font-size: 0.75rem;
    margin-left: auto;
}

.notification-message {
    color: var(--neutral-light);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.notification-location {
    color: var(--neutral-medium);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.notification-location i {
    margin-right: 0.25rem;
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.notification-actions .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Empty state styling */
.notification-timeline .text-center {
    padding: 2rem 1rem;
}

.notification-timeline .opacity-50 {
    opacity: 0.5;
}

/* Simple Notification Bell Styling */
#notificationBell {
    transition: color 0.3s ease;
}

#notificationBell:hover {
    color: var(--warning-color);
}

#notificationBadge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

