/* 3-Minute Meditation - Daily Devotions Styles */

/* Site Header - Common across all pages */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 0 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.site-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.site-header h1 i {
    margin-right: 10px;
}

.site-tagline {
    font-size: 1rem;
    opacity: 0.95;
    margin: 0;
    font-weight: 400;
}

/* Site Footer - Matching header design */
.site-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 0;
    margin-top: 40px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
}

.site-footer .container {
    max-width: 1200px;
}

.footer-section {
    text-align: center;
    margin-bottom: 25px;
}

.footer-section:last-child {
    margin-bottom: 0;
}

.footer-section h5 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.footer-section h5 i {
    margin-right: 8px;
}

.footer-section p {
    font-size: 1rem;
    opacity: 0.95;
}

.footer-link {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.footer-link:hover {
    color: white;
    opacity: 1;
    text-decoration: underline;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.footer-separator {
    opacity: 0.6;
    margin: 0 5px;
}

.footer-visitors {
    color: white;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 15px;
    display: inline-block;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 20px;
    margin-top: 20px;
}

.footer-copyright p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.scripture-ref {
    font-style: italic;
    opacity: 0.85;
    font-size: 0.9em;
}

/* Zoom Controls */
.zoom-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    align-self: center; /* Ensure it aligns with other flex items */
}

.zoom-controls .dropdown-menu {
    background: white;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 250px;
    margin-top: 8px;
}

.zoom-controls .dropdown-item {
    padding: 10px 20px;
    color: #555;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.zoom-controls .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: #667eea;
}

.zoom-controls .dropdown-divider {
    margin: 8px 0;
    border-color: #e0e0e0;
}

.zoom-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.zoom-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.zoom-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.zoom-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* TTS Button active state */
.zoom-btn.active {
    background: rgba(255, 255, 255, 0.4);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

/* TTS Text Highlighting */
.tts-highlight {
    background: linear-gradient(120deg, #ffeaa7 0%, #fdcb6e 100%) !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(253, 203, 110, 0.4) !important;
    transition: all 0.5s ease !important;
    animation: highlightPulse 1.5s ease-in-out infinite !important;
}

@keyframes highlightPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(253, 203, 110, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 16px rgba(253, 203, 110, 0.6);
    }
}

.tts-highlight h2,
.tts-highlight p,
.tts-highlight .verse-reference {
    color: #2d3436 !important;
}

.zoom-level {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    min-width: 50px;
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

/* Zoom Notification */
.zoom-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Copy Controls - Base styles for header (if used) */
.copy-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.copy-btn:hover:not(:disabled) {
    background: white;
    color: #667eea;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.copy-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.copy-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(40, 167, 69, 0.95);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-notification.error {
    background: rgba(220, 53, 69, 0.95);
}

.copy-notification.show {
    opacity: 1;
    transform: translateY(0);
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0 0 40px 0;
}

.devotion-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.devotion-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 40px;
    text-align: center;
}

.devotion-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.devotion-date {
    font-size: 1.1rem;
    opacity: 0.9;
}

.devotion-content {
    padding: 40px;
}

.section {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section h2 {
    color: #667eea;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section h2 i {
    font-size: 1.5rem;
}

.section p {
    color: #555;
    line-height: 1.9;
    margin-bottom: 15px;
    text-align: justify;
    font-size: 1.05rem;
}

.verse-reference {
    font-style: italic;
    color: #764ba2;
    font-weight: 600;
    margin-top: 15px;
    display: block;
    font-size: 0.95rem;
}

.navigation {
    background: #f8f9fa;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.nav-btn i {
    color: white !important;
}

.nav-btn:hover {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    text-decoration: none;
}

.nav-btn:hover i {
    color: white !important;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.devotion-counter {
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

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

/* Header Controls Container */
.header-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

/* Language Selector Styles - Matching other controls */
.language-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.lang-btn:active {
    transform: scale(0.95);
}

.lang-btn i {
    font-size: 1.1rem;
}

.lang-label {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.language-selector .dropdown-menu {
    background: white;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 150px;
    margin-top: 8px;
}

.language-selector .dropdown-item {
    padding: 10px 20px;
    color: #555;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.language-selector .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: #667eea;
}

.language-selector .dropdown-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    color: #667eea;
    font-weight: 600;
}

.language-selector .dropdown-item i {
    color: #667eea;
    font-size: 0.85rem;
}

/* Mode Selector Styles - Matching Zoom Controls */
.mode-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    align-self: center; /* Ensure it aligns with other flex items */
}

.mode-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.mode-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.mode-btn:active:not(.active) {
    transform: scale(0.95);
}

.mode-btn.active {
    background: white;
    color: #667eea;
    border-color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Meditation List Item Styles */
.meditation-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    gap: 20px;
}

.meditation-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    transform: translateX(5px);
}

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

.meditation-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.meditation-info {
    flex-grow: 1;
}

.meditation-info h5 {
    margin: 0 0 8px 0;
    color: #667eea;
    font-weight: 600;
}

.meditation-info p {
    margin: 0;
    font-size: 0.9rem;
}

/* Navigation Center */
.navigation-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

/* Copy Controls in Navigation */
.navigation-center .copy-controls {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.navigation-center .copy-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.navigation-center .copy-btn i {
    font-size: 1rem;
}

.navigation-center .copy-btn-label {
    display: inline;
}

.navigation-center .copy-btn:hover:not(:disabled) {
    background: white;
    color: #667eea;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.navigation-center .copy-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.navigation-center .copy-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Disabled Button State */
.nav-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header h1 {
        font-size: 1.8rem;
    }
    
    .site-tagline {
        font-size: 0.9rem;
    }
    
    .header-controls {
        gap: 8px;
    }
    
    /* Language selector mobile styles */
    .lang-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
        border-radius: 18px;
    }
    
    .lang-label {
        max-width: 80px;
    }
    
    .language-selector .dropdown-menu {
        min-width: 140px;
    }
    
    .zoom-controls {
        gap: 8px;
        margin-top: 0px;
    }
    
    .zoom-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .copy-controls {
        gap: 8px;
        flex-direction: column;
        width: 100%;
    }
    
    .copy-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
        gap: 6px;
        width: 100%;
    }
    
    .navigation-center .copy-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
        gap: 6px;
    }
    
    .copy-btn i,
    .navigation-center .copy-btn i {
        font-size: 0.9rem;
    }
    
    .zoom-level {
        font-size: 0.9rem;
        padding: 6px 10px;
        min-width: 45px;
    }
    
    .zoom-notification,
    .copy-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
    }
    
    .devotion-header h2 {
        font-size: 1.5rem;
    }
    
    .devotion-content {
        padding: 20px;
    }
    
    .section h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
        gap: 10px;
    }
    
    .section h2 i {
        font-size: 1.1rem;
    }
    
    .section p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .mode-selector {
        gap: 8px;
    }
    
    .mode-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .meditation-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .navigation-center {
        order: -1;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Footer responsive */
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-separator {
        display: none;
    }
    
    .footer-section h5 {
        font-size: 1.1rem;
    }
    
    .footer-copyright p {
        font-size: 0.85rem;
    }
}

/* Admin Panel Styles */
.admin-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.admin-navbar {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
}

.admin-navbar .navbar-text {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.admin-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 20px auto;
    overflow: hidden;
}

.admin-login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.admin-login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    text-align: center;
}

.admin-login-header h4 {
    margin: 0;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.admin-form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.admin-form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.admin-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.admin-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.admin-btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.admin-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.admin-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
    padding: 20px;
}

.admin-card-header h5 {
    margin: 0;
    color: #495057;
    font-weight: 600;
}

.admin-table {
    margin: 0;
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.admin-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.admin-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.admin-btn-group .btn {
    border-radius: 8px;
    margin: 0 2px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.admin-btn-outline-primary {
    border-color: #667eea;
    color: #667eea;
}

.admin-btn-outline-primary:hover {
    background: #667eea;
    transform: scale(1.05);
}

.admin-btn-outline-warning {
    border-color: #ffc107;
    color: #ffc107;
}

.admin-btn-outline-warning:hover {
    background: #ffc107;
    transform: scale(1.05);
}

.admin-btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.admin-btn-outline-danger:hover {
    background: #dc3545;
    transform: scale(1.05);
}

/* Admin Modal - Complete Override for Better Control */
.admin-modal.modal {
    z-index: 1055;
}

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

.admin-modal .modal-dialog {
    max-width: 1000px !important;
    width: 90vw !important;
    margin: 1rem auto !important;
    height: calc(100vh - 2rem) !important;
    max-height: calc(100vh - 2rem) !important;
    display: flex !important;
    align-items: stretch !important;
    transform: none !important;
}

/* Fix modal backdrop */
.modal-backdrop.show {
    opacity: 0.6;
}

.admin-modal .modal-content {
    border-radius: 15px !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    height: 100% !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
}

.admin-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-radius: 15px 15px 0 0 !important;
    padding: 1rem 1.5rem !important;
    flex-shrink: 0 !important;
    border-bottom: none !important;
}

.admin-modal .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.admin-modal .btn-close {
    filter: brightness(0) invert(1);
}

.admin-modal .modal-body {
    padding: 1.5rem !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: 100% !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f0f4ff;
    position: relative;
}

.admin-modal .modal-body::-webkit-scrollbar {
    width: 8px;
}

.admin-modal .modal-body::-webkit-scrollbar-track {
    background: #f0f4ff;
    border-radius: 10px;
}

.admin-modal .modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.admin-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3 0%, #63408b 100%);
}

.admin-modal .modal-footer {
    border-top: 1px solid #dee2e6 !important;
    padding: 1rem 1.5rem !important;
    flex-shrink: 0 !important;
    background-color: #f8f9fa !important;
    border-radius: 0 0 15px 15px !important;
}

/* Ensure form doesn't interfere with scrolling */
.admin-modal .admin-form {
    display: contents;
}

/* Add scroll indicator shadow */
.admin-modal .modal-body::before {
    content: '';
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
    pointer-events: none;
    margin: -1.5rem -1.5rem 0 -1.5rem;
    display: block;
}

.admin-modal .modal-body::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
    pointer-events: none;
    margin: 0 -1.5rem -1.5rem -1.5rem;
    display: block;
}

.admin-form-section {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 10px 10px 0;
}

.admin-form-section h6 {
    margin: 0 0 15px 0;
    color: #667eea;
    font-weight: 600;
}

/* Modal form improvements */
.admin-modal .admin-form-group {
    margin-bottom: 1.2rem;
}

.admin-modal .row .admin-form-group {
    margin-bottom: 1rem;
}

/* Enhanced form section headers */
.admin-modal h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: #667eea;
    display: flex;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e7ff;
}

.admin-modal h6 i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Enhanced form labels */
.admin-modal .admin-form-label {
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 600;
    color: #495057;
    display: block;
    letter-spacing: 0.3px;
}

/* Enhanced form controls */
.admin-modal .admin-form-control {
    font-size: 14px;
    padding: 10px 14px;
    border: 2px solid #e0e7ff;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #ffffff;
    width: 100%;
}

.admin-modal .admin-form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
    background-color: #fafbff;
}

.admin-modal .admin-form-control:hover:not(:focus) {
    border-color: #b8c5f2;
}

/* Enhanced textareas */
.admin-modal textarea.admin-form-control {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

/* Input placeholders */
.admin-modal .admin-form-control::placeholder {
    color: #a8b3cf;
    font-style: italic;
}

/* Date picker styling */
.admin-modal input[type="date"].admin-form-control {
    position: relative;
    cursor: pointer;
    min-width: 150px;
}

/* Ensure the date field can be clicked */
.admin-modal input[type="date"].admin-form-control {
    pointer-events: auto !important;
}

.admin-modal input[type="date"].admin-form-control::-webkit-calendar-picker-indicator {
    cursor: pointer;
    background: transparent;
    color: #667eea;
    font-size: 18px;
    padding: 4px;
    border-radius: 4px;
    position: relative;
    z-index: 2;
    pointer-events: auto !important;
}

.admin-modal input[type="date"].admin-form-control::-webkit-calendar-picker-indicator:hover {
    background-color: rgba(102, 126, 234, 0.1);
}

/* Ensure date picker dropdown appears above modal */
.admin-modal input[type="date"]::-webkit-datetime-edit {
    padding: 0;
}

.admin-modal input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 1;
}

/* Fix for Firefox */
.admin-modal input[type="date"].admin-form-control::-moz-calendar-picker-indicator {
    cursor: pointer;
}

/* Ensure modal doesn't clip date picker */
.admin-modal .modal-content {
    overflow: visible !important;
}

.admin-modal .modal-dialog {
    overflow: visible !important;
}

/* Force date picker to appear above Bootstrap modal */
input[type="date"]::-webkit-calendar-picker-indicator {
    z-index: 9999 !important;
}

/* Ensure the date picker dropdown appears above everything */
.admin-modal input[type="date"] {
    z-index: 1060 !important;
    position: relative;
}

/* Alternative: If the above doesn't work, we need to handle the form positioning */
.admin-modal .modal-body {
    position: relative;
    z-index: 1;
}

/* Required field indicator */
.admin-modal .admin-form-label:has(+ .admin-form-control[required])::after,
.admin-modal .admin-form-label:contains("*")::after {
    content: "";
    color: #dc3545;
    margin-left: 3px;
}

/* Smooth scrolling for modal body */
.admin-modal .modal-body {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Number inputs */
.admin-modal input[type="number"].admin-form-control {
    appearance: textfield;
    -moz-appearance: textfield;
}

.admin-modal input[type="number"].admin-form-control::-webkit-inner-spin-button,
.admin-modal input[type="number"].admin-form-control::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* URL inputs */
.admin-modal input[type="url"].admin-form-control {
    font-family: monospace;
    font-size: 13px;
}

/* Form rows spacing */
.admin-modal .row {
    margin-left: -8px;
    margin-right: -8px;
}

.admin-modal .row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

/* Disabled inputs */
.admin-modal .admin-form-control:disabled {
    background-color: #f5f7fa;
    border-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.7;
}

.admin-alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.admin-alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.1));
    color: #155724;
    border-left: 4px solid #28a745;
}

.admin-alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.1));
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.admin-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.admin-empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Admin Responsive */
@media (max-width: 768px) {
    .admin-container {
        margin: 10px;
        border-radius: 10px;
    }
    
    .admin-login-card {
        margin: 10px;
        border-radius: 15px;
    }
    
    .admin-table-responsive {
        border-radius: 10px;
    }
    
    .admin-btn-group {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .admin-btn-group .btn {
        width: 100%;
        margin: 2px 0;
    }
    
    /* Admin Modal Responsive */
    .admin-modal .modal-dialog {
        width: calc(100vw - 1rem) !important;
        height: calc(100vh - 1rem) !important;
        margin: 0.5rem auto !important;
    }
    
    .admin-modal .modal-header {
        padding: 0.75rem 1rem !important;
    }
    
    .admin-modal .modal-body {
        padding: 1rem !important;
    }
    
    .admin-modal .modal-footer {
        padding: 0.75rem 1rem !important;
    }
    
    .admin-modal .modal-title {
        font-size: 1rem;
    }
    
    .admin-form-section {
        margin: 15px -10px;
        border-radius: 0;
        border-left: none;
        border-top: 4px solid #667eea;
    }
}

/* Admin Header Section - Mobile Friendly */
.admin-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-section-title {
    margin: 0;
    font-size: 1.5rem;
    color: #495057;
    flex: 1 1 auto;
    min-width: 200px;
}

.admin-action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-header-btn {
    white-space: nowrap;
}

@media (max-width: 576px) {
    .admin-header-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-section-title {
        text-align: center;
        font-size: 1.3rem;
    }
    
    .admin-action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .admin-header-btn {
        width: 100%;
        justify-content: center;
    }
    
    .admin-header-btn span {
        display: inline;
    }
}

/* Mobile Card View for Meditations */
.admin-mobile-list {
    padding: 15px;
}

.admin-meditation-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.admin-meditation-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    border-bottom: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-meditation-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.admin-meditation-title {
    margin: 0;
    color: #495057;
    font-weight: 600;
    font-size: 1rem;
    flex: 1;
    line-height: 1.4;
}

.admin-meditation-card-body {
    padding: 15px;
}

.admin-meditation-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.admin-meta-item {
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.admin-meta-item i {
    color: #667eea;
    margin-right: 6px;
}

.admin-meditation-actions {
    display: flex;
    gap: 10px;
}

.admin-meditation-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    font-weight: 600;
    border-radius: 8px;
}

.admin-meditation-actions .admin-btn-outline-warning {
    background: rgba(255, 193, 7, 0.1);
}

.admin-meditation-actions .admin-btn-outline-danger {
    background: rgba(220, 53, 69, 0.1);
}

/* Admin Filters Section */
.admin-filters {
    background: #f8f9fa;
}

.admin-filters .form-label {
    font-weight: 600;
    color: #667eea;
}

.admin-filters .form-select,
.admin-filters .form-control {
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.admin-filters .form-select:focus,
.admin-filters .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}
