/* Custom overrides for Lina Mandla Medical Management System */

/* Document Management Styles */
.document-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    height: 100%;
}

.document-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.document-icon {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #f3f4f6;
}

.document-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.document-actions .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* Document Viewer Modal Styles */
#documentViewerModal .modal-dialog {
    max-width: 95vw;
    width: 95vw;
    height: 95vh;
    margin: 2.5vh auto;
}

#documentViewerModal .modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#documentViewerModal .modal-body {
    flex: 1;
    overflow: hidden;
    padding: 0;
}

#documentViewerContent {
    height: 100%;
    overflow: auto;
}

#documentViewerContent iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
}

/* Document viewer loading state */
.document-viewer-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
}

/* Document preview fallback */
.document-preview-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    text-align: center;
    padding: 2rem;
}

/* Simple action button styling - using standard Bootstrap classes */

/* Patient Management Styles */
.patient-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.patient-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.patient-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 32px;
    margin-bottom: 16px;
}

.patient-details {
    flex: 1;
}

.patient-details strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.patient-details small {
    font-size: 12px;
    color: #6b7280;
}

.contact-info {
    font-size: 14px;
    line-height: 1.4;
}

.contact-info div {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-info i {
    width: 16px;
    color: #6b7280;
}

.age-badge {
    background: #f3f4f6;
    color: #374151;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.gender-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.gender-badge.gender-male {
    background: #dbeafe;
    color: #1e40af;
}

.gender-badge.gender-female {
    background: #fce7f3;
    color: #be185d;
}

.gender-badge.gender-other {
    background: #f3e8ff;
    color: #7c3aed;
}

.patient-details-modal {
    padding: 0;
}

.patient-details-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.patient-info-large h4 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
    color: #111827;
}

.patient-info-large p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.patient-details-body {
    padding: 0;
}

.detail-item {
    margin-bottom: 16px;
}

.detail-item label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
    font-size: 14px;
}

.detail-item span {
    color: #6b7280;
    font-size: 14px;
}

.detail-item .text-warning {
    color: #f59e0b !important;
    font-weight: 500;
}

.detail-item .text-danger {
    color: #dc2626 !important;
    font-weight: 500;
}

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

.status-badge.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-badge.status-inactive {
    background: #fee2e2;
    color: #dc2626;
}

.status-badge i {
    font-size: 10px;
}

/* Alerts badge for patients */
.alerts-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    user-select: none;
}

.alerts-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.alerts-badge.badge-danger {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alerts-badge.badge-danger:hover {
    background: #fecaca;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.alerts-badge.badge-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alerts-badge.badge-success:hover {
    background: #bbf7d0;
    box-shadow: 0 2px 8px rgba(22, 101, 52, 0.2);
}

.alerts-badge i {
    font-size: 10px;
}

/* Alert section styling in modal */
.alert-section {
    margin-bottom: 1.5rem;
}

.alert-section .section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none !important;
    padding: 0 !important;
}

.alert-section .section-title i {
    font-size: 1.1rem;
}

/* Dark mode support for alert section titles */
[data-theme="dark"] .alert-section .section-title {
    color: #f9fafb !important;
    background: none !important;
}

[data-theme="dark"] .alert-section .section-title i.text-warning {
    color: #fbbf24 !important;
}

[data-theme="dark"] .alert-section .section-title i.text-danger {
    color: #f87171 !important;
}

.alert-content .alert {
    border-radius: 8px;
    border: none;
    padding: 1rem;
}

.alert-content .alert p {
    margin: 0;
    line-height: 1.6;
}

/* Action buttons for patients */
.action-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.action-buttons .btn {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-buttons .btn i {
    font-size: 10px;
}

/* Patient form specific styles */
#patientForm .form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

#patientForm .form-control,
#patientForm .form-select {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
}

#patientForm .form-control:focus,
#patientForm .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Patient modal tab styles */
#patientTabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #6b7280;
    font-weight: 500;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

#patientTabs .nav-link:hover {
    color: #3b82f6;
    border-bottom-color: #e5e7eb;
}

#patientTabs .nav-link.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: none;
}

#patientTabs .nav-link i {
    margin-right: 8px;
    font-size: 14px;
}

/* Tab content styling */
#patientTabContent {
    min-height: 400px;
}

#patientTabContent .tab-pane {
    padding: 20px 0;
}

/* Form validation styles */
#patientForm .form-control.is-invalid,
#patientForm .form-select.is-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Modal footer button styling */
#patientModal .modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: 16px 24px;
    background: #f9fafb;
}

#patientModal .modal-footer .btn {
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
}

#patientModal .modal-footer .btn i {
    margin-right: 6px;
    font-size: 12px;
}

/* Alert styling in medical tab */
#emergency-medical .alert {
    border: none;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

#emergency-medical .alert i {
    margin-right: 8px;
}

/* Form text styling */
.form-text {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

/* Label icons */
.form-label i {
    margin-right: 6px;
    font-size: 14px;
}

/* Patient search and filters */
.filters-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-box input {
    padding-right: 40px;
}

.search-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}

.filter-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-group select {
    min-width: 120px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .patient-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .patient-avatar {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        justify-content: stretch;
    }
    
    .filter-group select {
        flex: 1;
        min-width: auto;
    }
}

/* Override existing styles to work with our theme */
.ftco-section {
    padding: 3em 0;
    position: relative;
}

.container {
    position: relative;
    z-index: 2;
}

/* Ensure background images work properly */
.img.js-fullheight {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Fix for background image not showing on scroll - Full page overlay */
.img.js-fullheight::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(1, 8, 14, 0.8) 0%, rgba(23, 42, 73, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Light theme overlay */
[data-theme="light"] .img.js-fullheight::before {
    background: linear-gradient(135deg, rgba(73, 72, 72, 0.8) 0%, rgba(6, 12, 72, 0.7) 100%);
}

/* Dark theme overlay */
[data-theme="dark"] .img.js-fullheight::before {
    background: linear-gradient(135deg, rgba(1, 8, 14, 0.8) 0%, rgba(23, 42, 73, 0.7) 100%);
}

/* Ensure content is above the overlay */
.img.js-fullheight .container,
.img.js-fullheight .row,
.img.js-fullheight .col-md-6,
.img.js-fullheight .col-lg-4,
.img.js-fullheight .col-md-8 {
    position: relative;
    z-index: 2;
}

/* Form styling improvements */
.signin-form .form-group {
    margin-bottom: 1.5rem;
}

.signin-form .form-group label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Field icon for password toggle */
.field-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.field-icon:hover {
    color: var(--color-accent-green);
}

/* Form group with relative positioning for icons */
.form-group {
    position: relative;
}

/* Button improvements */
.btn {
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
}

.btn i {
    margin-right: 0.5rem;
}

/* Alert improvements */
.alert {
    border: none;
    border-radius: 8px;
    font-weight: 500;
}

.alert i {
    margin-right: 0.5rem;
}

/* Heading improvements */
.heading-section {
    color: var(--color-white);
    font-weight: 700;
}

/* Link improvements */
a {
    color: var(--color-accent-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-green);
    text-decoration: none;
}

/* List group improvements */
.list-group-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: var(--bg-secondary);
    transform: translateX(5px);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .ftco-section {
        padding: 3em 0;
    }
    
    .login-wrap {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .dashboard-header h1 {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Animation improvements - Removed fade-in animations */

/* Focus improvements */
.form-control:focus {
    outline: none;
    border-color: var(--color-accent-green);
    box-shadow: 0 0 0 0.2rem rgba(1, 180, 49, 0.25);
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--color-accent-green);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Logo with circular background */
.logo-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Navbar logo icon styling */
.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.1);
}

.logo-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.logo-circle:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.logo-circle:hover::before {
    transform: rotate(45deg) translate(100%, 100%);
}

.logo-circle img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    z-index: 2;
    position: relative;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .logo-circle {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }
    
    .logo-circle img {
        width: 65px;
        height: 65px;
    }
}

@media (max-width: 480px) {
    .logo-circle {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }
    
    .logo-circle img {
        width: 50px;
        height: 50px;
    }
}

/* Mobile Clinic Selection Modal */
.mobile-clinic-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.mobile-clinic-modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.mobile-clinic-modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.mobile-clinic-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-clinic-modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.mobile-clinic-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.mobile-clinic-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.mobile-clinic-loading .spinner-border {
    margin-bottom: 15px;
}

.mobile-clinic-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-clinic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    transition: all 0.3s ease;
}

.mobile-clinic-item:hover {
    border-color: var(--color-accent-green);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.mobile-clinic-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.mobile-clinic-info i {
    font-size: 1.5rem;
    color: var(--color-accent-green);
    width: 24px;
    text-align: center;
}

.mobile-clinic-info h5 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-clinic-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.mobile-clinic-item .btn {
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: 6px;
    font-weight: 500;
    min-width: 80px;
}

/* Responsive adjustments for mobile modal */
@media (max-width: 480px) {
    .mobile-clinic-modal-content {
        width: 95%;
        margin: 2% auto;
        max-height: 90vh;
    }
    
    .mobile-clinic-modal-header {
        padding: 15px;
    }
    
    .mobile-clinic-modal-body {
        padding: 15px;
    }
    
    .mobile-clinic-item {
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .mobile-clinic-info {
        justify-content: flex-start;
    }
    
    .mobile-clinic-item .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile Notifications Modal */
.mobile-notifications-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.mobile-notifications-modal-content {
    background-color: var(--card-bg);
    margin: 3% auto;
    padding: 0;
    border-radius: 12px;
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.3s ease-out;
}

.mobile-notifications-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    flex-wrap: wrap;
    gap: 10px;
}

.mobile-notifications-modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-notifications-modal-header h3 i {
    color: var(--color-accent-green);
}

.mobile-notifications-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-notifications-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-notifications-modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.mobile-notifications-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.mobile-notifications-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.mobile-notifications-loading .spinner-border {
    margin-bottom: 15px;
}

.mobile-notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-notification-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    transition: all 0.3s ease;
    overflow: hidden;
}

.mobile-notification-item.unread {
    border-left: 4px solid var(--color-accent-green);
    background: linear-gradient(90deg, rgba(1, 180, 49, 0.05) 0%, transparent 100%);
}

.mobile-notification-item.read {
    opacity: 0.8;
}

.mobile-notification-content {
    padding: 16px;
}

.mobile-notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 12px;
}

.mobile-notification-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    line-height: 1.4;
}

.mobile-notification-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.notification-priority {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notification-priority.priority-high {
    background: #fee2e2;
    color: #dc2626;
}

.notification-priority.priority-medium {
    background: #fef3c7;
    color: #d97706;
}

.notification-priority.priority-low {
    background: #d1fae5;
    color: #059669;
}

.mobile-notification-body {
    margin-bottom: 12px;
}

.mobile-notification-body p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-notification-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mobile-notification-actions .btn {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mobile-notifications-empty {
    text-align: center;
    padding: 40px 20px;
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state h4 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
}

.empty-state p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.mobile-notifications-modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    text-align: center;
}

.mobile-notifications-modal-footer .btn {
    width: 100%;
    padding: 12px 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Responsive adjustments for mobile notifications modal */
@media (max-width: 480px) {
    .mobile-notifications-modal-content {
        width: 98%;
        margin: 1% auto;
        max-height: 95vh;
    }
    
    .mobile-notifications-modal-header {
        padding: 15px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .mobile-notifications-actions {
        justify-content: space-between;
    }
    
    .mobile-notifications-modal-body {
        padding: 15px;
    }
    
    .mobile-notification-content {
        padding: 12px;
    }
    
    .mobile-notification-header {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .mobile-notification-meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-notification-actions {
        justify-content: stretch;
    }
    
    .mobile-notification-actions .btn {
        flex: 1;
        justify-content: center;
    }
    
    .mobile-notifications-modal-footer {
        padding: 15px;
    }
}

/* Login Notifications Modal */
.login-notifications-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.login-notifications-modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.3s ease-out;
}

.login-notifications-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--card-bg) 100%);
}

.login-notifications-welcome h3 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-notifications-welcome h3 i {
    color: var(--color-accent-green);
    font-size: 1.3rem;
}

.login-notifications-welcome p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

.notification-count-badge {
    background: var(--color-accent-green);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 4px;
}

.login-notifications-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.login-notifications-modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.login-notifications-modal-body {
    padding: 25px;
    max-height: 50vh;
    overflow-y: auto;
}

.login-notifications-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.login-notifications-loading .spinner-border {
    margin-bottom: 15px;
}

.login-notifications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-notification-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
    transition: all 0.3s ease;
    overflow: hidden;
}

.login-notification-item.unread {
    border-left: 4px solid var(--color-accent-green);
    background: linear-gradient(90deg, rgba(1, 180, 49, 0.05) 0%, transparent 100%);
    box-shadow: 0 2px 8px rgba(1, 180, 49, 0.1);
}

.login-notification-item.read {
    opacity: 0.8;
}

.login-notification-content {
    padding: 20px;
}

.login-notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 15px;
}

.login-notification-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    line-height: 1.4;
}

.login-notification-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.notification-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.notification-priority {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notification-priority.priority-high {
    background: #fee2e2;
    color: #dc2626;
}

.notification-priority.priority-medium {
    background: #fef3c7;
    color: #d97706;
}

.notification-priority.priority-low {
    background: #d1fae5;
    color: #059669;
}

.login-notification-body {
    margin-bottom: 15px;
}

.login-notification-body p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.login-notification-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.login-notification-actions .btn {
    font-size: 0.8rem;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-notifications-empty {
    text-align: center;
    padding: 50px 20px;
}

.empty-state i {
    font-size: 3.5rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state h4 {
    margin: 0 0 10px 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.empty-state p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
}

.login-notifications-modal-footer {
    padding: 25px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.login-notifications-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.login-notifications-actions .btn {
    padding: 12px 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 160px;
}

/* Responsive adjustments for login notifications modal */
@media (max-width: 768px) {
    .login-notifications-modal-content {
        width: 95%;
        margin: 3% auto;
        max-height: 90vh;
    }
    
    .login-notifications-modal-header {
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .login-notifications-welcome h3 {
        font-size: 1.3rem;
    }
    
    .login-notifications-modal-body {
        padding: 20px;
    }
    
    .login-notification-content {
        padding: 15px;
    }
    
    .login-notification-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .login-notification-meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .login-notification-actions {
        justify-content: stretch;
    }
    
    .login-notification-actions .btn {
        flex: 1;
        justify-content: center;
    }
    
    .login-notifications-modal-footer {
        padding: 20px;
    }
    
    .login-notifications-actions {
        flex-direction: column;
    }
    
    .login-notifications-actions .btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .login-notifications-modal-content {
        width: 98%;
        margin: 1% auto;
        max-height: 95vh;
    }
    
    .login-notifications-modal-header {
        padding: 15px;
    }
    
    .login-notifications-modal-body {
        padding: 15px;
    }
    
    .login-notification-content {
        padding: 12px;
    }
}