/* Custom styles for SBVE website - Sankta Birgitta Vokalensemble style */

@import url('https://fonts.googleapis.com/css2?family=Cormorant:wght@400;700&family=Josefin+Sans:wght@400;700&display=swap');

/* Default theme variables (Birgitta) */
:root {
    --primary-color: #3b5998;
    --primary-color-light: #5a7bb8;
    --primary-font: 'Cormorant', serif;
    --secondary-font: 'Josefin Sans', sans-serif;
    --text-color: #333;
    --bg-color: #fff;
}

body {
    font-family: var(--secondary-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Header and Navigation */
.navbar {
    background-color: var(--primary-color) !important;
    padding: 1rem 0;
    box-shadow: none;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1020;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    background-color: rgba(59, 89, 152, 0.95) !important;
}

.navbar-brand {
    font-family: var(--primary-font);
    font-weight: 700;
    font-size: 2rem;
    color: #fff !important;
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 400;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link.active {
    font-weight: 700;
}

.navbar .dropdown .btn-outline-light {
    border: none;
}

/* Typography */
h1 {
    font-family: var(--primary-font);
    font-weight: 700;
    color: var(--primary-color);
}

/* Hero section titles should always be white for contrast */
.hero-section h1,
.members-hero h1,
.login-hero h1,
.gallery-hero h1,
.info-hero h1,
.calendar-hero h1 {
    color: white !important;
}

/* Hero section gradients using theme colors */
.hero-section,
.members-hero,
.login-hero,
.gallery-hero,
.info-hero,
.calendar-hero {
    background: linear-gradient(135deg, var(--primary-color-light), var(--primary-color)) !important;
}

/* Other sections with gradients using theme colors */
.card[style*="linear-gradient(135deg, var(--primary-color)"],
section[style*="linear-gradient(135deg, var(--primary-color)"] {
    background: linear-gradient(135deg, var(--primary-color-light), var(--primary-color)) !important;
}

/* Typography */
h2, h3 {
    font-family: var(--primary-font);
    font-weight: 700;
    color: white;
}

/* Fix for card header buttons */
.card-header .btn {
    color: white !important;
}

.card-header .btn:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Fix for calendar card header button */
.card-header.bg-gradient .btn {
    background: none !important;
    border: none !important;
}

.card-header.bg-gradient .btn:focus,
.card-header.bg-gradient .btn:active {
    background: none !important;
    box-shadow: none !important;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color-light), var(--primary-color));
    color: white;
    font-family: var(--primary-font);
    font-weight: 700;
    padding: 1rem;
}

.card-body {
    padding: 1.5rem;
}

/* Images */
.img-fluid {
    border-radius: 0 !important;
}

/* Footer */
footer {
    background-color: var(--primary-color) !important;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

/* List groups */
.list-group-item {
    border-left: none;
    border-right: none;
    padding: 1rem 1.25rem;
}

/* Accordion styles */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
}

.accordion-button {
    background: linear-gradient(135deg, var(--primary-color-light), var(--primary-color));
    color: white;
    font-family: var(--primary-font);
    font-weight: 700;
    font-size: 1.5rem;
    padding: 1rem;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-color-light), var(--primary-color));
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 1.5rem;
    background-color: #fff;
}

/* Gallery styles */
.thumbnail {
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.thumbnail:hover {
    transform: scale(1.05);
}

/* Lightbox customization */
.lb-data .lb-caption {
    font-family: var(--primary-font);
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
}

.lb-data .lb-number {
    font-family: var(--secondary-font);
}

/* Members page - single column layout */
.accordion-body .row .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Member hiatus styling */
.member-hiatus {
    color: #6c757d !important;
    font-style: italic;
}

/* Low attendance styling */
.low-attendance td {
    color: #0d6efd !important;
}

/* Touch-friendly buttons - Enhanced */
@media (pointer: coarse) {
    .btn {
        min-height: 48px;
        min-width: 48px;
        padding: 0.75rem 1rem;
    }
    
    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }
    
    .form-control, .form-select {
        min-height: 48px;
        font-size: 16px;
    }
    
    .card {
        cursor: pointer;
    }
    
    .gallery-item {
        cursor: pointer;
    }
    
    /* Larger touch targets for small elements */
    .btn-sm {
        min-height: 40px;
        min-width: 40px;
    }
    
    .close, .btn-close {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Image optimization for different screen densities */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .high-dpi img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Masonry gallery layout */
.gallery-grid {
    column-count: 4;
    column-gap: 1rem;
    column-fill: balance;
}

/* Responsive masonry columns */
@media (max-width: 1200px) {
    .gallery-grid {
        column-count: 3;
    }
}

@media (max-width: 992px) {
    .gallery-grid {
        column-count: 3;
        column-gap: 0.75rem;
    }
}

.gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
    break-inside: avoid;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.02);
}



/* Enhanced image optimization styles */
.lazy {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.lazy.loaded {
    opacity: 1;
    background: none;
    animation: none;
}

/* Skeleton loader for better loading states */
.skeleton-loader {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: 1em;
}

.skeleton-card {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive image containers */
.img-responsive {
    width: 100%;
    height: auto;
    display: block;
}

.img-container {
    position: relative;
    overflow: hidden;
}

.img-container::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Progressive loading blur effect */
.progressive-img {
    transition: filter 0.3s ease;
}

.progressive-img.loading {
    filter: blur(5px);
}

/* WebP fallback indicator */
.webp-supported .no-webp {
    display: none;
}

.no-webp-support .webp-only {
    display: none;
}

/* Loading states */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

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



/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* Calendar Styles */
.calendar-cell {
    height: 120px;
    vertical-align: top;
    padding: 8px;
    border: 1px solid #dee2e6;
    position: relative;
}

.calendar-cell.other-month {
    background-color: #f8f9fa;
    color: #6c757d;
}

.calendar-cell.today {
    background-color: #e3f2fd;
    border-color: var(--primary-color);
}

.day-number {
    font-weight: bold;
    margin-bottom: 4px;
}

.day-events {
    font-size: 0.75rem;
}

.event-item {
    background-color: var(--primary-color);
    color: white;
    padding: 2px 4px;
    margin: 1px 0;
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-item:hover {
    opacity: 0.8;
}

/* Busy/Free event styling */
.event-busy {
    background-color: var(--primary-color) !important;
    border-left: 4px solid #dc3545;
}

.event-free {
    background-color: #28a745 !important;
    border-left: 4px solid #20c997;
    opacity: 0.8;
}

.event-card.event-free {
    border-left: 4px solid #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

.event-card.event-busy {
    border-left: 4px solid var(--primary-color);
}

.event-item[title] {
    position: relative;
}

.event-item[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: pre-line;
    z-index: 1000;
    min-width: 200px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.event-item[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(1px);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    z-index: 1001;
    pointer-events: none;
}

.event-card {
    transition: box-shadow 0.2s ease;
}

.event-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.calendar-view {
    min-height: 400px;
}

/* Navigation visibility fixes for mobile caching issues */
.navbar {
    visibility: visible !important;
    display: block !important;
}

.navbar-collapse {
    visibility: visible !important;
}

.navbar-nav {
    visibility: visible !important;
}

/* Prevent navigation from being hidden during loading */
@media (max-width: 991.98px) {
    .navbar-toggler {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .navbar-collapse {
        visibility: visible !important;
    }
    
    .navbar-nav {
        visibility: visible !important;
    }
}

/* Index page visual enhancements */

/* Hero section enhancements */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    animation: fadeInUp 1s ease-out;
}

.hero-description {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.hero-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: left 0.5s;
}

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

.video-container {
    animation: fadeInRight 1s ease-out 0.3s both;
    transition: transform 0.3s ease;
}

.video-container:hover {
    transform: scale(1.02);
}

.video-frame {
    border: 3px solid rgba(255,255,255,0.2);
    transition: border-color 0.3s ease;
}

.video-container:hover .video-frame {
    border-color: rgba(255,255,255,0.4);
}

/* Feature cards enhancements */
.feature-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color-light), var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.feature-icon-wrapper {
    position: relative;
    z-index: 2;
}

.feature-icon {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.feature-title {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.feature-description {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.contact-btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.contact-btn:hover {
    background-color: #2c5aa0;
    border-color: #2c5aa0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* History cards enhancements */
.history-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.history-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.history-img-container {
    position: relative;
    overflow: hidden;
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.history-img-container:hover .img-overlay {
    opacity: 1;
}

.history-img-container img {
    transition: transform 0.3s ease;
}

.history-img-container:hover img {
    transform: scale(1.05);
}

/* Concert cards enhancements */
.concert-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.concert-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-left-width: 6px;
}

/* Section titles */
.section-title {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color-light), var(--primary-color));
    border-radius: 2px;
}

/* Remove underline from concerts section title and ensure it's centered */
[data-i18n="some_selected_concerts"] {
    display: block;
    width: 100%;
    text-align: center;
}

[data-i18n="some_selected_concerts"]::after,
[data-i18n="our_history_title"]::after {
    display: none;
}

/* Smooth scrolling */
.smooth-scroll {
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Improved spacing */
section {
    margin-bottom: 4rem;
}

.py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* Calendar page enhancements */
.calendar-hero {
    min-height: 25vh;
    display: flex;
    align-items: center;
}

.calendar-view-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out;
}

.calendar-view-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

.calendar-view-header {
    position: relative;
    overflow: hidden;
}

.calendar-view-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.calendar-view-header:hover::before {
    left: 100%;
}

.calendar-controls .btn {
    border-radius: 25px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0.25rem;
}

.calendar-controls .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.calendar-controls .btn.active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#calendar {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: white;
}

.fc-toolbar {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 15px 15px 0 0;
}

.fc-event {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

/* Information page enhancements */
.info-hero {
    min-height: 30vh;
    display: flex;
    align-items: center;
}

.info-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out;
    margin-bottom: 2rem;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

.info-card-header {
    position: relative;
    overflow: hidden;
}

.info-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.info-card-header:hover::before {
    left: 100%;
}

.info-card .card-body {
    padding: 2rem;
}

.info-card .btn {
    transition: all 0.3s ease;
    border-radius: 10px;
    font-weight: 500;
}

.info-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.info-card .list-group-item {
    border: none;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.info-card .list-group-item:hover {
    transform: translateX(10px);
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-card .alert {
    border-radius: 10px;
    border: none;
}

/* Members page enhancements */
.members-hero {
    min-height: 25vh;
    display: flex;
    align-items: center;
}

.filter-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-btn {
    border-radius: 25px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0.25rem;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.filter-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.birthday-btn {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color-light), var(--primary-color));
    border: none;
}

.birthday-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,193,7,0.4);
    background: linear-gradient(135deg, var(--primary-color-light), var(--primary-color));
}

.member-card-body {
    position: relative;
    z-index: 2;
}

.member-name {
    position: relative;
    z-index: 2;
}

.member-voice {
    position: relative;
    z-index: 2;
}

.member-group-badge {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, var(--primary-color-light), var(--primary-color));
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.member-contacts {
    position: relative;
    z-index: 2;
}

.contact-item {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.contact-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #20b954);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    border-radius: 10px;
    font-weight: 600;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.3);
    background: linear-gradient(135deg, #20b954, #25d366);
}

/* Login page enhancements */
.login-hero {
    min-height: 25vh;
    display: flex;
    align-items: center;
}

.login-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

.login-btn {
    background: linear-gradient(135deg, var(--primary-color-light), var(--primary-color));
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, var(--primary-color-light), var(--primary-color));
}

.login-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: left 0.5s;
}

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

.form-control-lg {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control-lg:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 89, 152, 0.25);
    transform: translateY(-1px);
}

.form-select.form-control-lg {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-select.form-control-lg:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 89, 152, 0.25);
    transform: translateY(-1px);
}

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

/* Mobile-First Enhancements */

/* Touch-friendly interactions */
.btn, .nav-link, .form-control, .form-select {
    min-height: 44px;
    min-width: 44px;
}

/* Improved tap targets */
.card, .list-group-item, .gallery-item {
    cursor: pointer;
}

/* Mobile navigation improvements */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    font-size: 1.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid rgba(255,255,255,0.5);
}

.navbar-collapse {
    background: var(--primary-color);
    margin: 0 -1rem;
    padding: 1rem;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Mobile form improvements */
.form-control, .form-select {
    font-size: 16px; /* Prevents zoom on iOS */
    border-radius: 10px;
    padding: 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-width: 2px;
    transform: none; /* Remove transform on mobile for better performance */
}

/* Mobile modal improvements */
.modal-dialog {
    margin: 0.5rem;
    max-height: calc(100vh - 1rem);
}

.modal-content {
    border-radius: 15px;
    max-height: calc(100vh - 1rem);
    overflow-y: auto;
}

.modal-body {
    padding: 1.5rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* Swipe gestures support */
.swipeable {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

/* Mobile card optimizations */
.card {
    margin-bottom: 1rem;
    border-radius: 15px;
}

.card:hover {
    transform: none; /* Disable hover transforms on mobile */
}

/* Mobile button improvements */
.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

.btn:active {
    transform: scale(0.98);
}

/* Mobile gallery improvements */
.gallery-item {
    margin-bottom: 1rem;
    border-radius: 12px;
}

.gallery-item:hover {
    transform: none;
}

/* Mobile loading states */
.loading-overlay {
    backdrop-filter: blur(5px);
}

/* Mobile accessibility */
.sr-only-mobile {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile-specific media queries */
@media (max-width: 768px) {
    .calendar-cell {
        height: 80px;
        padding: 4px;
    }
    
    .day-events {
        font-size: 0.65rem;
    }
    
    .event-item {
        padding: 1px 2px;
        margin: 0.5px 0;
    }
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .accordion-button {
        font-size: 1.25rem;
        padding: 0.75rem;
    }
    
    .thumbnail {
        height: 150px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Mobile filter controls */
    .filter-controls {
        width: 100%;
    }
    
    .filter-controls .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .filter-controls .btn {
        flex: 1;
        min-width: calc(50% - 0.25rem);
        min-height: 48px;
        font-size: 0.9rem;
        border-radius: 0.375rem !important;
        margin: 0;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Mobile-optimized member cards */
    .member-item {
        padding: 1rem !important;
        margin-bottom: 0.5rem;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .member-item .d-flex {
        flex-direction: column;
        align-items: stretch !important;
        gap: 1rem;
    }
    
    .member-item .text-end {
        text-align: left !important;
        width: 100%;
    }
    
    /* Mobile member info layout */
    .member-info {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .member-name {
        font-size: 1.1rem;
        font-weight: 600;
        line-height: 1.3;
    }
    
    .member-contact {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .contact-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem;
        background-color: #f8f9fa;
        border-radius: 6px;
    }
    
    .contact-item a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 500;
    }
    
    /* Mobile WhatsApp button */
    .btn-whatsapp {
        width: 100%;
        min-height: 48px;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 8px;
        margin-top: 0.5rem;
    }
    
    /* Mobile voice sections */
    .voice-section {
        margin-bottom: 1.5rem;
    }
    
    .voice-section .card {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .voice-section .card-header {
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    .voice-section .list-group-flush {
        border-radius: 0;
    }
    
    /* Mobile form improvements */
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px;
    }
    
    .modal-dialog {
        margin: 1rem;
    }
    
    /* Mobile masonry optimizations */
    .gallery-grid {
        column-count: 2;
        column-gap: 0.5rem;
    }
    
    .gallery-item {
        margin-bottom: 0.5rem;
    }
    
    .img-container::before {
        padding-top: 75%; /* 4:3 aspect ratio for mobile */
    }
    
    /* Mobile birthday modal */
    .modal-body .row {
        flex-direction: column;
    }
    
    .modal-body .col-md-6 {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Extra small screen masonry optimizations */
    .gallery-grid {
        column-count: 1;
        column-gap: 0.5rem;
    }
    
    .thumbnail {
        height: 120px;
    }
    
    .img-container::before {
        padding-top: 100%; /* Square aspect ratio for very small screens */
    }
    
    /* Mobile hero adjustments */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .hero-btn {
        width: 100%;
        text-align: center;
    }
    
    .video-container {
        margin-top: 2rem;
    }
    
    /* Mobile feature cards */
    .feature-card:hover {
        transform: translateY(-5px);
    }
    
    /* Mobile section spacing */
    section {
        margin-bottom: 2rem;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Mobile login adjustments */
    .login-hero {
        min-height: 30vh;
    }
    
    .login-card {
        margin: 1rem;
    }
    
    #main-content {
        margin-top: -30px !important;
    }
    
    /* Mobile calendar adjustments */
    .calendar-hero {
        min-height: 20vh;
    }
    
    .calendar-controls {
        margin-bottom: 1rem;
    }
    
    .calendar-controls .row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .calendar-controls .col-md-6 {
        text-align: center;
    }
    
    .calendar-controls .btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
        margin: 0.2rem;
    }
    
    .calendar-view-header {
        padding: 1rem !important;
    }
    
    /* Mobile info adjustments */
    .info-hero {
        min-height: 25vh;
    }
    
    .info-card {
        margin-bottom: 1.5rem;
    }
    
    .info-card .card-body {
        padding: 1.5rem;
    }
    
    .info-card-header {
        padding: 1rem !important;
    }
    
    .info-card h4 {
        font-size: 1.1rem;
    }
    
    /* Mobile hero sections */
    .hero-section, .login-hero, .members-hero, .gallery-hero, .info-hero, .calendar-hero {
        min-height: 30vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem !important;
        align-items: stretch;
    }
    
    .hero-btn {
        width: 100%;
        text-align: center;
        min-height: 48px;
    }
    
    /* Mobile navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Mobile cards */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    /* Mobile buttons */
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        border-radius: 10px !important;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    /* Mobile forms */
    .form-control, .form-select {
        font-size: 16px;
        min-height: 48px;
        padding: 0.75rem 1rem;
    }
    
    .input-group .btn {
        min-height: 48px;
    }
    
    /* Mobile members page */
    .members-hero {
        min-height: 25vh;
    }
    
    .filter-section {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 15px;
    }
    
    .filter-controls .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .filter-btn {
        flex: 1;
        min-width: calc(50% - 0.25rem);
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
        margin: 0;
        border-radius: 25px;
    }
    
    .birthday-btn {
        width: 100%;
        margin-top: 1rem;
        min-height: 48px;
    }
    
    .portrait-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .member-portrait-card {
        max-width: 100%;
    }
    
    /* Mobile gallery */
    .gallery-grid {
        column-count: 1;
        column-gap: 1rem;
    }
    
    .gallery-item {
        margin-bottom: 1rem;
        break-inside: avoid;
    }
    
    /* Mobile information cards */
    .info-card .card-body {
        padding: 1.5rem;
    }
    
    .info-card .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .info-card .list-group-item {
        padding: 1rem;
        border-radius: 10px;
        margin-bottom: 0.5rem;
    }
    
    /* Mobile calendar */
    .calendar-controls {
        margin-bottom: 1rem;
    }
    
    .calendar-controls .row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .calendar-controls .col-md-6 {
        text-align: center;
    }
    
    .calendar-controls .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
        margin: 0.2rem;
        min-height: 44px;
    }
    
    /* Mobile login */
    .login-card {
        margin: 1rem 0.5rem;
        border-radius: 15px;
    }
    
    .login-btn {
        min-height: 48px;
        font-size: 1rem;
    }
    
    /* Mobile modals */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
    
    /* Mobile spacing */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mt-5 {
        margin-top: 2rem !important;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .display-4, .display-5, .display-6 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .card-header h4, .card-header h5 {
        font-size: 1rem;
    }
    
    .portrait-gallery {
        grid-template-columns: 1fr;
    }
    
    .filter-btn {
        min-width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .gallery-grid {
        column-count: 1;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Landscape mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section, .login-hero, .members-hero, .gallery-hero, .info-hero, .calendar-hero {
        min-height: 40vh;
    }
    
    .modal-dialog {
        max-height: 90vh;
    }
    
    .modal-body {
        max-height: 60vh;
    }
}

/* High DPI mobile displays */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
    .hero-icon {
        font-size: 3rem;
    }
    
    .card {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
}

/* UX Enhancement Styles */

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(59, 89, 152, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

.loading-spinner.me-2 {
    margin-right: 0.5rem;
}

/* Skeleton Loaders */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: 1em;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Progress Indicators */
#page-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary-color);
    z-index: 9999;
    transition: width 0.3s ease;
}

.step-indicator {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: inline-block;
}

/* Form Enhancements */
.form-control.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.8-.77-.8-.77-.8.77.8.77zm1.48-4.97L6.06 4.04l-.8.77-2.28-2.28-.8-.77zm0 0'/%3e%3c/svg%3e");
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 2.4 2.4m0-2.4L5.8 7'/%3e%3c/svg%3e");
}

.was-validated .form-control:valid {
    border-color: #28a745;
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
}

/* Accessibility Enhancements */
.keyboard-navigation *:focus {
    outline: 2px solid var(--primary-color) !important;
    outline-offset: 2px !important;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus Management */
.focus-trap {
    position: relative;
}

.focus-trap::before,
.focus-trap::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Error States */
.error-state {
    border: 2px solid #dc3545;
    background-color: #f8d7da;
    color: #721c24;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin: 1rem 0;
    display: flex;
    align-items: center;
}

.error-message i {
    margin-right: 0.5rem;
    color: #dc3545;
}

/* Success States */
.success-state {
    border: 2px solid #28a745;
    background-color: #d4edda;
    color: #155724;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin: 1rem 0;
    display: flex;
    align-items: center;
}

.success-message i {
    margin-right: 0.5rem;
    color: #28a745;
}

/* Toast Notifications */
.toast-container {
    z-index: 9999;
}

.toast {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Interactive States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Hover States */
.interactive:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

/* Validation Feedback */
.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #28a745;
}

/* Progress Bars */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color-light), var(--primary-color));
    transition: width 0.6s ease;
}

/* Tooltips Enhancement */
.tooltip {
    font-size: 0.875rem;
}

.tooltip-inner {
    max-width: 300px;
    padding: 0.5rem 0.75rem;
    background-color: rgba(0,0,0,0.9);
    border-radius: 6px;
}

/* Animation Enhancements */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

.bounce-in {
    animation: bounceIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid;
    }
    
    .card {
        border: 1px solid;
    }
    
    .form-control {
        border: 2px solid;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .loading-spinner {
        animation: none;
        border: 3px solid var(--primary-color);
    }
}
/* Admin page specific styles */
.admin-table { width: 100%; }
.admin-table td { padding: 0.25rem !important; }
.admin-table th:nth-child(1), .admin-table td:nth-child(1) { width: 5%; }
.admin-table th:nth-child(2), .admin-table td:nth-child(2) { width: 8%; }
.admin-table th:nth-child(3), .admin-table td:nth-child(3) { width: 4%; }
.admin-table th:nth-child(4), .admin-table td:nth-child(4) { width: 8%; }
.admin-table th:nth-child(5), .admin-table td:nth-child(5) { width: 50%; }
.admin-table th:nth-child(6), .admin-table td:nth-child(6) { width: 10%; }
.admin-table th:nth-child(7), .admin-table td:nth-child(7) { width: 2%; }
.admin-table th:nth-child(8), .admin-table td:nth-child(8) { width: 2%; }
.admin-table th:nth-child(9), .admin-table td:nth-child(9) { width: 2%; }
.admin-table th:nth-child(10), .admin-table td:nth-child(10) { width: 4%; }
.admin-table th:nth-child(11), .admin-table td:nth-child(11) { width: 2%; }
.admin-table th:nth-child(12), .admin-table td:nth-child(12) { width: 2%; }
.admin-table th:nth-child(13), .admin-table td:nth-child(13) { width: 1%; }

/* Admin cards consistent width */
#main-content .card {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
}

/* Ensure all admin card containers have consistent width */
#eventsCard,
#membersCard,
#photoGalleryCard,
#admin-cards-container,
#workDocumentsCard,
#systemMonitorCard {
    width: 100%;
    max-width: 100%;
}

/* Admin cards inside containers should be full width */
#eventsCard .card,
#membersCard .card,
#photoGalleryCard .card,
#admin-cards-container .card,
#workDocumentsCard .card,
#systemMonitorCard .card {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.copy-command-input { cursor: text !important; }
.copy-btn { cursor: pointer; }
.copy-btn:hover { background-color: var(--primary-color) !important; color: white !important; }

.event-form-modal .modal-content { border: none; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); }
.event-form-modal .modal-header { border-radius: 12px 12px 0 0; border-bottom: none; padding: 1.5rem; }
.event-form-modal .modal-footer { border-radius: 0 0 12px 12px; border-top: 1px solid #e9ecef; }

.form-section { background: #f8f9fa; border-radius: 8px; padding: 1.5rem; border-left: 4px solid var(--primary-color); }
.section-header { color: #495057; font-size: 1rem; border-bottom: 1px solid #dee2e6; padding-bottom: 0.5rem; }

.time-presets .btn, .location-presets .btn { border-radius: 20px; font-size: 0.85rem; padding: 0.25rem 0.75rem; }

#eventsTableBody tr { border-bottom: 2px solid #e9ecef !important; transition: all 0.2s ease; }
#eventsTableBody tr:hover { background-color: #e3f2fd !important; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transform: translateY(-1px); }
#eventsTableBody td { padding: 1rem 0.75rem; vertical-align: top; border-left: 4px solid transparent; }

#eventsTableBody tr:has(.fa-music) td:first-child { border-left-color: #28a745; }
#eventsTableBody tr:has(.fa-microphone) td:first-child { border-left-color: #dc3545; }
#eventsTableBody tr:has(.fa-users) td:first-child { border-left-color: #ffc107; }
#eventsTableBody tr:has(.fa-calendar) td:first-child { border-left-color: #007bff; }

#eventsTableBody .fa-music { color: #28a745; }
#eventsTableBody .fa-microphone { color: #dc3545; }
#eventsTableBody .fa-users { color: #ffc107; }
#eventsTableBody .fa-calendar { color: #007bff; }

.table-responsive table thead th:nth-child(1), .table-responsive table tbody td:nth-child(1) { width: 10%; }
.table-responsive table thead th:nth-child(2), .table-responsive table tbody td:nth-child(2) { width: 50%; }
.table-responsive table thead th:nth-child(3), .table-responsive table tbody td:nth-child(3) { width: 5%; }
.table-responsive table thead th:nth-child(4), .table-responsive table tbody td:nth-child(4) { width: 15%; }
.table-responsive table thead th:nth-child(5), .table-responsive table tbody td:nth-child(5) { width: 10%; }

/* Modal backdrop opacity fix */
.modal-backdrop {
    opacity: 0.3 !important;
}

@media (max-width: 768px) {
    .event-form-modal .modal-dialog { margin: 0.5rem; }
    .form-section { padding: 1rem; }
    .time-presets .btn, .location-presets .btn { font-size: 0.8rem; padding: 0.2rem 0.6rem; margin-bottom: 0.25rem; }
    #eventsTableBody td { padding: 0.75rem 0.5rem; }
}