/* Disable slideshow animation on mobile */
@media screen and (max-width: 768px) {
    .slideshow-track {
        animation: none !important;
    }
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #1a1a1a;
    overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(224, 224, 224, 0.1);
    border-top: 4px solid #e0e0e0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Category page inline spinner container */
.category-loading .loading-spinner {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
}

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

.loading-text {
    color: #e0e0e0;
    font-size: 1.2rem;
    font-weight: 300;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* keep brand from shrinking/wrapping when admin items are present */
}

.nav-logo img {
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.nav-logo h2 {
    color: #ffffff;
    font-weight: 600;
    padding-right: 2rem;
    white-space: nowrap; /* prevent brand text from wrapping into two lines */
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: #e74c3c;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #e74c3c;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.private-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 10px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.private-link::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #e0e0e0;
    margin: 3px 0;
    transition: 0.3s;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    color: #ffffff;
}

.section-subtitle {
    text-align: center;
    color: #b0b0b0;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Gallery Section */
.gallery-section {
    /* Reduce top padding: honor dynamic navbar height with a smaller extra offset */
    padding: calc(var(--nav-height) + 12px) 0 80px;
    background: #1a1a1a;
}

/* Category Slideshows */
.category-slideshows {
    margin-top: 3rem;
}

.category-row {
    margin-bottom: 4rem;
    position: relative;
}

.category-row.offset-1 {
    transform: translateX(50px);
}

.category-row.offset-2 {
    transform: translateX(-30px);
}

.category-row.offset-3 {
    transform: translateX(80px);
}

.category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.category-title.clickable {
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.category-title.clickable:hover {
    color: #e74c3c;
    transform: translateY(-2px);
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 2px;
}

.slideshow-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    height: 300px;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    padding: 20px;
}

.slideshow-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
    height: 100%;
}

/* JS-based animation will be applied to .slideshow-track */

.slideshow-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 260px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.slideshow-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.slideshow-item img {
    height: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.slideshow-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.slideshow-item:hover .slideshow-overlay {
    transform: translateY(0);
}

.slideshow-overlay h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.slideshow-overlay p {
    opacity: 0.8;
    font-size: 0.9rem;
}


/* Legacy grid styles (keeping for filter functionality) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background: #3a3a3a;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    opacity: 0.8;
}

/* Category Page Section */
.category-page-section {
    /* Reduce top padding; header accounts for navbar clearance */
    padding: 20px 0 100px;
    background: #1a1a1a;
    min-height: 100vh;
}

.category-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem; /* reduced to tighten gap before grid */
    position: relative;
    /* Ensure content starts below the fixed navbar at all sizes with minimal extra space */
    padding-top: calc(var(--nav-height) + 6px);
}

/* Ensure loading indicator spacing feels balanced under the header */
.category-loading {
    min-height: 60px;
}

/* In gallery (category) view, reduce the subtitle spacing specifically */
.category-page-section .section-subtitle {
    margin-bottom: 1rem;
}

.back-btn {
    position: absolute;
    left: 0;
    /* Place within header; header padding already clears navbar */
    top: 6px;
    background: #2c2c2c;
    color: #e0e0e0;
    border: 2px solid #444;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.back-btn:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #ffffff;
    transform: translateY(-2px);
}

.back-btn i {
    font-size: 14px;
}

/* Desktop-specific tweaks can be added here if needed */
@media screen and (min-width: 769px) {
    /* Ensure desktop header clears the fixed navbar slightly more to avoid overlap */
    .category-header {
        padding-top: calc(var(--nav-height) + 18px); /* small extra padding above title */
        /* Use absolute back button so the title stays perfectly centered */
        display: block;
    }
    .category-header .back-btn {
        position: absolute;
        left: 0;
        /* Sit within the header's top padding, aligned with title row */
        top: 6px;
        z-index: 2;
        margin: 0;
    }
    .category-header .section-title {
        margin: 0;
        text-align: center; /* center title across full container width */
    }
    .category-header .section-subtitle {
        margin-top: 0.5rem;
        text-align: center; /* center subtitle text horizontally */
    }
}

/* Waterfall Grid - Pinterest-style masonry layout */
.waterfall-grid {
    column-count: 4;
    /* Ensure horizontal spacing between columns (include Safari-friendly prop) */
    -webkit-column-gap: 20px;
    column-gap: 20px;
    padding: 10px 0; /* reduce top padding to bring grid closer to header */
    max-width: 1200px;
    margin: 0 auto;
}

.waterfall-item {
    background: #2c2c2c;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    break-inside: avoid;
    /* Prevent column breaks in Safari/WebKit */
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 20px;
    width: 100%;
    display: inline-block;
}

.waterfall-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

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

.waterfall-item:hover img {
    transform: scale(1.05);
}

.waterfall-item .item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.waterfall-item:hover .item-overlay {
    transform: translateY(0);
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: #2c2c2c;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #e0e0e0;
    line-height: 1.8;
}

.skills {
    margin-top: 2rem;
}

.skills h3 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.skills ul {
    list-style: none;
}

.skills li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: #e0e0e0;
}

.skills li i {
    color: #e74c3c;
    margin-right: 1rem;
    width: 20px;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    background: #3a3a3a;
    min-height: 400px;
    object-fit: cover;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
    background: #1a1a1a;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: #2c2c2c;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.pricing-header i {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 1rem;
    display: block;
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0;
}

.price {
    text-align: center;
    margin-bottom: 2rem;
}

.currency {
    font-size: 1.5rem;
    color: #e74c3c;
    vertical-align: top;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
}

.period {
    font-size: 1rem;
    color: #b0b0b0;
}

.features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #e0e0e0;
    line-height: 1.5;
}

.features li i {
    color: #27ae60;
    margin-right: 1rem;
    font-size: 1rem;
    width: 20px;
    flex-shrink: 0;
}

.pricing-note {
    text-align: center;
    background: #2c2c2c;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.pricing-note p {
    margin: 0;
    color: #e0e0e0;
    font-style: italic;
}

.pricing-note i {
    color: #e74c3c;
    margin-right: 0.5rem;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: #2c2c2c;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: #1a1a1a;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 2rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.contact-item p {
    color: #e0e0e0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #3a3a3a;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: #b0b0b0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e74c3c;
}

.submit-btn {
    padding: 15px 35px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

/* Visually hidden utility (keeps content accessible to screen readers) */
.visually-hidden {
    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;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    margin-bottom: 0.5rem;
}

.footer-logo p {
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #e74c3c;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 80%;
    object-fit: contain;
    margin-top: 5%;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #e0e0e0;
    padding: 10px 0;
    height: 150px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #1a1a1a;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .slideshow-item {
        /* Let width be auto based on image ratio; keep a reasonable height */
        height: 210px;
    }
    
    .slideshow-container {
        height: 250px;
        padding: 15px;
    }
    
    .category-row.offset-1,
    .category-row.offset-2, 
    .category-row.offset-3 {
        transform: translateX(20px);
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .gallery-filter {
        justify-content: center;
    }

    .filter-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    /* Category Page Responsive */
    .category-header {
        margin-bottom: 1.25rem; /* tighter on mobile */
    }

    /* In-flow back button on mobile to prevent overlap */
    .category-header .back-btn {
        position: relative;
        left: 0;
        top: 0;
        align-self: flex-start;
        margin-bottom: 12px;
    }

    .waterfall-grid {
        /* Force at least 3 columns on mobile */
        column-count: 3 !important;
        /* Horizontal spacing so columns never touch */
        -webkit-column-gap: 12px;
        column-gap: 12px;
        /* Small inner padding so edge columns don't hug container sides */
        padding-left: 6px;
        padding-right: 6px;
    }
    
    .waterfall-item {
        margin-bottom: 12px; /* vertical spacing between items */
    }
}

/* Mobile portrait: allow smaller images and more columns to avoid vertical stacking */
@media screen and (max-width: 768px) and (orientation: portrait) {
    .waterfall-grid {
        column-count: 3 !important;
        -webkit-column-gap: 12px;
        column-gap: 12px;
    }
    .waterfall-item {
        margin-bottom: 12px;
    }
}

/* Safety: on very small phones in portrait, keep at least 2 columns (avoid collapsing to 1) */
@media screen and (max-width: 420px) and (orientation: portrait) {
    .waterfall-grid {
        column-count: 3 !important; /* force 3 columns even on very small phones */
        -webkit-column-gap: 10px;
        column-gap: 10px;
        padding-left: 4px;
        padding-right: 4px;
    }
}

@media screen and (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    /* Force 3 columns on very small phones as requested */
    .waterfall-grid {
        column-count: 3 !important;
        -webkit-column-gap: 10px;
        column-gap: 10px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 1rem 15px;
    }

    .modal-content {
        width: 95%;
    }
    
    .category-row.offset-1,
    .category-row.offset-2, 
    .category-row.offset-3 {
        transform: translateX(0);
    }
    /* Keep consistent spacing */
    .waterfall-item {
        margin-bottom: 12px;
    }
}

/* Large screens */
@media screen and (min-width: 1200px) {
    .waterfall-grid {
        column-count: 5;
        column-gap: 25px;
    }
}

/* Extra large screens */
@media screen and (min-width: 1600px) {
    .waterfall-grid {
        column-count: 6;
    }
}

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

/* Dynamic navbar height (can be updated from JS if needed) */
:root {
    --nav-height: 120px;
}

/* Account for fixed navbar when using in-page anchors */
section[id] {
    scroll-margin-top: calc(var(--nav-height) + 10px);
}

/* Loading animation for images */
.slideshow-item img {
    height: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    transform: translateZ(0);
}
.about-img[src=""] {
    opacity: 0.5;
}

/* Firebase Auth & Admin Styles */
.auth-btn, .admin-btn, .logout-btn, .login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 10px 16px;
    border: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.auth-btn:hover, .admin-btn:hover, .logout-btn:hover, .login-btn:hover {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.auth-btn::after, .admin-btn::after, .logout-btn::after, .login-btn::after {
    display: none;
}

#auth-nav-items {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#user-email {
    font-size: 0.9rem;
    color: #666 !important;
    background: rgba(102, 126, 234, 0.1);
    padding: 6px 12px;
    border-radius: 15px;
}

/* Admin Panel Styles */
.admin-tab {
    padding: 10px 20px;
    border: 2px solid #e1e5e9;
    background: white;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.admin-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.admin-tab:hover:not(.active) {
    border-color: #667eea;
    color: #667eea;
}

.upload-progress {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    background: white;
    border: 1px solid #e1e5e9;
}

.progress-item {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 5px;
    background: #f8f9fa;
    font-size: 14px;
}

.progress-item.success {
    background: #d4edda;
    color: #155724;
}

.progress-item.error {
    background: #f8d7da;
    color: #721c24;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e1e5e9;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Modal responsiveness for mobile */
@media screen and (max-width: 768px) {
    #auth-nav-items {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .admin-tab {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .modal-content {
        padding: 20px;
        margin: 20px;
        max-height: 90vh;
    }
}

/* Admin Panel Management Styles */
.admin-tab {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #333;
}

.admin-tab:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.admin-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.admin-tab-content {
    padding: 20px 0;
}

.admin-tab-content h3 {
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

/* Gallery Management Grid */
.gallery-photo-item {
    position: relative;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-photo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-color: #e74c3c;
}

.gallery-photo-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.gallery-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(231, 76, 60, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-photo-item:hover .gallery-photo-overlay {
    opacity: 1;
}

.gallery-photo-overlay i {
    font-size: 2rem;
    color: white;
}

.gallery-photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px;
    font-size: 0.8rem;
    text-align: center;
}

/* Client Management List */
.client-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.client-info {
    flex: 1;
}

.client-email {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.client-photos {
    color: #666;
    font-size: 0.9rem;
}

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

.client-delete-btn {
    padding: 8px 16px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.client-delete-btn:hover {
    background: #c0392b;
}

.client-view-btn {
    padding: 8px 16px;
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.client-view-btn:hover {
    background: #138496;
}

/* Progress Item Styles */
.progress-item {
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.progress-item.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.progress-item.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.progress-item.progress {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}
