/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #123249 0%, #0d47a1 100%);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: linear-gradient(135deg, #123249 0%, #0d47a1 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}


.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: white;
    font-weight: 700;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

#authButtons {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: #ffd700;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

.nav-toggle .close-icon {
    display: none;
    font-size: 2.5rem;
    color: white;
}

.nav-toggle.active .bar {
    display: none;
}

.nav-toggle.active .close-icon {
    display: block;
}

/* Hero Section */
 .hero {
    position: relative;
    color: white;
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    flex: 1;
    padding: 0 20px;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 400px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    cursor: pointer;
    overflow: hidden;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.hero-slide:hover .hero-overlay {
    transform: translateY(0);
}

.hero-overlay h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.hero-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: white;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero .btn {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.hero .btn-primary {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero .btn-secondary {
    color: white;
    border-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero .btn-secondary:hover {
    background: white;
    color: #123249; /* Dark blue from your gradient */
}

 .btn-primary {
    background: #1976d2;
    color: white;
}

 .btn-primary:hover {
    background: #1565c0;
    transform: translateY(-2px);
}

 .btn-secondary {
    background: transparent;
    color: #1976d2;
    border: 2px solid #1976d2;
}

 .btn-secondary:hover {
    background: #1976d2;
    color: white;
}

 .btn-outline {
    background: transparent;
    color: #1976d2;
    border: 2px solid #1976d2;
}

 .btn-outline:hover {
    background: #1976d2;
    color: white;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
}

/* Destinations Section */
.destinations {
    background: white;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

 .filter-btn {
    padding: 10px 20px;
    border: 2px solid #1976d2;
    background: transparent;
    color: #1976d2;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

 .filter-btn.active,
 .filter-btn:hover {
    background: #1976d2;
    color: white;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.destination-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.destination-image-holder {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.destination-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.destination-content {
    padding: 1.5rem;
}

 .destination-category {
    display: inline-block;
    padding: 4px 12px;
    background: #1976d2;
    color: white;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.destination-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.destination-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.destination-actions {
    display: flex;
    gap: 1rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.add-destination {
    text-align: center;
}

/* Map Section */
.map-section {
    background: #f8f9fa;
}

.map-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e1e5e9; /* Added a subtle border */
}

.map {
    height: 500px;
    width: 100%;
}

.map-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: row; /* Changed to row for a more compact look */
    gap: 10px;
}

.map-btn {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px); /* Frosted glass effect */
    border: none;
    padding: 12px 18px; /* Slightly larger buttons */
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

 .map-btn:hover {
    background: #1976d2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Custom marker styles */
 .custom-marker {
    background: white;
    border: 2px solid #1976d2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-marker:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-color: #4f46e5;
}

 .custom-marker i {
    font-size: 16px;
    color: #1976d2;
}

/* Map popup styles */
.leaflet-popup-content {
    margin: 8px 12px;
    line-height: 1.4;
}

.map-popup h4 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 16px;
}

.map-popup p {
    margin: 0 0 12px 0;
    color: #6b7280;
    font-size: 14px;
}

.map-popup .btn {
    margin: 0;
    padding: 6px 12px;
    font-size: 12px;
}

/* Analytics Section */
.analytics {
    background: white;
}

.analytics-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.chart-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

 .stat-card {
    background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

/* About Section */
.about {
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

 .feature i {
    font-size: 2rem;
    color: #1976d2;
    margin-top: 0.5rem;
}

.feature h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.feature p {
    color: #666;
    line-height: 1.5;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-body {
    margin-top: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e1e5e9;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.details-footer-main {
    display: flex;
    gap: 1rem;
}

.details-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.details-share span {
    font-weight: 500;
    color: #555;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn.facebook { background-color: #1877F2; }
.share-btn.twitter { background-color: #1DA1F2; }
.share-btn.copy-link { background-color: #6c757d; }

/* Destination Details Modal Styles */
.details-header {
    position: relative;
    margin-bottom: 1.5rem;
}

.details-main-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.details-status-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    text-transform: capitalize;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.status-emerging {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.status-potential {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Gallery Styles in Modal */
.details-gallery {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e1e5e9;
}

.details-gallery h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.gallery-main-image {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.gallery-thumb:hover {
    border-color: #1976d2;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.details-body {
    padding-top: 1rem;
}

.details-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e1e5e9;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.info-item i {
    color: #1976d2;
    margin-top: 4px;
}
.close:hover {
    color: #333;
}

/* Auth Switch */
.auth-switch {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e5e9;
}

 .auth-switch a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-radius: 8px;
    z-index: 1001;
    top: 100%;
    right: 0;
    margin-top: 5px;
}

.dropdown-menu a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
    border-radius: 8px;
    margin: 2px;
}

 .dropdown-menu a:hover {
    background-color: #e3f2fd;
    color: #123249;
}

.dropdown-menu a i {
    margin-right: 8px;
    width: 16px;
}

/* Show dropdown when active */
.user-dropdown.active .dropdown-menu {
    display: block;
}

/* Login/Register specific styles */
.modal-content h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 1.8rem;
}

/* Password strength indicator */
.password-strength {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.password-strength.weak {
    color: #ff6b6b;
}

.password-strength.medium {
    color: #ffa726;
}

.password-strength.strong {
    color: #4caf50;
}

/* Form validation styles */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

.error-message {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.success-message {
    color: #4caf50;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Events Section */
.events {
    background: #f8f9fa;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.event-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.event-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f2f5;
}

 .event-date {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.event-day {
    font-size: 1.1rem;
    font-weight: 700;
}

.event-month {
    font-size: 0.8rem;
    opacity: 0.9;
}

.event-title h3 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

 .event-destination {
    margin-top: 4px;
    font-size: 0.9rem;
    color: #1976d2;
}

.event-body {
    padding: 1rem 1.25rem 1.25rem;
}

.event-description {
    color: #555;
    margin-bottom: 0.75rem;
}

.events-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.events-controls .search-box {
    max-width: 400px;
}

.events-controls .filter-box {
    min-width: 200px;
}

.event-meta {
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
}

 .event-meta i {
    color: #1976d2;
    margin-right: 6px;
}

/* Event Image Styles */
.event-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1rem;
}

.event-image .event-date {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.event-content {
    padding: 1rem 1.25rem 1.25rem;
}

.event-content .event-title {
    margin-bottom: 0.75rem;
}

.event-content .event-title h3 {
    margin: 0 0 4px 0;
    color: #333;
    font-size: 1.1rem;
}

 .event-content .event-destination {
    margin: 0;
    font-size: 0.9rem;
    color: #1976d2;
}

.event-content .event-body {
    padding: 0;
}

.event-content .event-description {
    color: #555;
    margin-bottom: 0.75rem;
}

.event-content .event-meta {
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
}

 .event-content .event-meta i {
    color: #1976d2;
    margin-right: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        background-color: #123249;
        flex-direction: column;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .destinations-grid {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Loading Animation */
.loader-container {
    position: relative;
    min-height: 200px;
}

.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 15px;
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.loader-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #1976d2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
