:root {
    --primary-blue: #1e40af;
    --dark-blue: #1e3a8a;
    --light-blue: #dbeafe;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --gray-200: #e2e8f0;
    --success-green: #10b981;
    --warning-orange: #f59e0b;
    --private-color: #6366f1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: #ffffff;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-blue) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-600) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

.hero-section {
    background: linear-gradient(135deg, var(--gray-50) 0%, #ffffff 50%, var(--light-blue) 100%);
    padding: 4rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="20" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 600px;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.security-badge i {
    margin-right: 0.5rem;
}

.cta-buttons {
    margin-top: 2rem;
}

.btn-primary-custom {
    background: var(--primary-blue);
    border: none;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(30, 64, 175, 0.25);
}

.btn-primary-custom:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(30, 64, 175, 0.35);
}

.btn-outline-custom {
    border: 2px solid var(--gray-600);
    color: var(--gray-600);
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-custom:hover {
    background: var(--gray-600);
    color: white;
    transform: translateY(-2px);
}

.how-it-works {
    padding: 5rem 0;
    background: #ffffff;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    height: 100%;
    background: #ffffff;
    border: 1px solid var(--gray-100);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-blue);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.6;
}

.faq-section {
    padding: 5rem 0;
    background: var(--gray-50);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    background: #ffffff;
    border: none;
    font-weight: 600;
    color: var(--gray-900);
    padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--light-blue);
    color: var(--primary-blue);
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    padding: 1.5rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.btn-white {
    background: white;
    color: var(--primary-blue);
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-white:hover {
    background: var(--gray-100);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.footer {
    background: var(--gray-900);
    color: white;
    padding: 3rem 0 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        margin-bottom: 1rem;
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.user-profile {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-weight: 600;
    margin-right: 0.75rem;
}

.user-info h6 {
    margin: 0;
    font-weight: 600;
    color: var(--gray-900);
}

.user-info small {
    color: var(--gray-600);
}

.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--gray-600);
    font-size: 1.1rem;
}

.create-album-btn {
    background: var(--primary-blue);
    border: none;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(30, 64, 175, 0.25);
}

.create-album-btn:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(30, 64, 175, 0.35);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 1rem;
    border: 2px dashed var(--gray-200);
    margin: 2rem 0;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.album-card {
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.album-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.album-card.shared {
    border-color: var(--success-green);
}

.album-card.private {
    border-color: var(--private-color);
}

.album-thumbnail {
    height: 200px;
    background: var(--gray-100);
    position: relative;
    overflow: hidden;
}

.album-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.album-card:hover .album-thumbnail img {
    transform: scale(1.05);
}

.album-thumbnail.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--gray-100) 100%);
}

.album-thumbnail.placeholder i {
    font-size: 3rem;
    color: var(--gray-400);
}

.sharing-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(10px);
}

.sharing-badge.shared {
    background: rgba(16, 185, 129, 0.9);
}

.sharing-badge.private {
    background: rgba(99, 102, 241, 0.9);
}

.album-info {
    padding: 1.5rem;
}

.album-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.album-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.album-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.album-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.album-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-album-action {
    flex: 1;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--gray-200);
    background: #ffffff;
    color: var(--gray-700);
    transition: all 0.3s ease;
}

.btn-album-action:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    color: var(--gray-900);
}

.btn-album-action.primary {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.btn-album-action.primary:hover {
    background: var(--dark-blue);
    border-color: var(--dark-blue);
    color: white;
}

.stats-summary {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .page-header {
        text-align: center;
    }

    .page-header .d-flex {
        flex-direction: column;
        gap: 1rem;
    }

    .albums-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .album-actions {
        flex-direction: column;
    }

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

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-animation {
    animation: fadeIn 0.6s ease-in-out;
}

.stagger-animation:nth-child(1) {
    animation-delay: 0.1s;
}

.stagger-animation:nth-child(2) {
    animation-delay: 0.2s;
}

.stagger-animation:nth-child(3) {
    animation-delay: 0.3s;
}

.stagger-animation:nth-child(4) {
    animation-delay: 0.4s;
}

.stagger-animation:nth-child(5) {
    animation-delay: 0.5s;
}

.stagger-animation:nth-child(6) {
    animation-delay: 0.6s;
}

.lightbox-video {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
}

.lightbox-video-controls {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.video-control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.album-header {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.album-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.album-meta {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.sharing-badge {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.album-actions {
    display: flex;
    gap: 0.75rem;
}

.photos-container {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--gray-100);
}

.photo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.photo-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

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

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

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

.empty-gallery {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-600);
}

.empty-icon {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1.5rem;
}

.empty-gallery h3 {
    font-size: 1.5rem;
    color: var(--gray-800);
    margin-bottom: 1rem;
}


.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    flex-shrink: 0;
    /* Prevent header from shrinking */
}

.photo-info h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}

.btn-close-lightbox {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-close-lightbox:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-image-container {
    flex: 1;
    /* Take remaining space */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem;
    min-height: 0;
    /* Important: allows flex child to shrink */
    overflow: hidden;
    /* Prevent container overflow */
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Fit entire image in container */
    border-radius: 0.5rem;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    transform-origin: center;
}

.lightbox-image.zoomed {
    cursor: zoom-out;
    transform: scale(2);
    cursor: grab;
}

.lightbox-image.zoomed:active {
    cursor: grabbing;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    z-index: 10;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-prev {
    left: 1rem;
}

.nav-next {
    right: 1rem;
}

.lightbox-footer {
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    /* Prevent footer from shrinking */
}

.zoom-controls {
    display: flex;
    gap: 0.5rem;
}

.zoom-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 0.875rem;
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.zoom-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Mobile optimizations */
@media (max-width: 768px) {

    .lightbox-header,
    .lightbox-footer {
        padding: 0.75rem 1rem;
    }

    .lightbox-image-container {
        padding: 0.5rem;
    }

    .nav-btn {
        width: 44px;
        height: 44px;
    }

    .nav-prev {
        left: 0.5rem;
    }

    .nav-next {
        right: 0.5rem;
    }

    .photo-info h5 {
        font-size: 0.9rem;
    }

    .zoom-controls {
        display: none;
        /* Hide zoom controls on mobile to save space */
    }

    /* Smooth loading animation */
    .lightbox-image {
        opacity: 0;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .lightbox-image.loaded {
        opacity: 1;
    }
}

/* Delete Mode Styles */
.delete-mode-banner {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
    color: #dc2626;
}

.selected-count {
    font-weight: 600;
    color: #dc2626;
}

/* Photo Item Delete States */
.photo-item {
    position: relative;
}

.delete-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(239, 68, 68, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
}

.delete-checkbox {
    width: 50px;
    height: 50px;
    background: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    border: 3px solid white;
}

.photo-item.delete-mode {
    cursor: pointer;
}

.photo-item.delete-mode .photo-overlay {
    display: none;
}

.photo-item.selected .delete-overlay {
    display: flex;
}

/* Quick Delete Button */
.quick-delete-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 30px;
    height: 30px;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 0.875rem;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
}

.photo-item:hover .quick-delete-btn {
    opacity: 1;
}

.quick-delete-btn:hover {
    background: rgba(239, 68, 68, 1);
    transform: scale(1.1);
}

/* Hide quick delete in delete mode */
.photos-grid.delete-mode .quick-delete-btn {
    display: none;
}

/* Lightbox delete button */
.lightbox-actions {
    display: flex;
    align-items: center;
}

/* Album header styles remain the same */
.album-header {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.video-play-button:hover {
    background: white;
    transform: scale(1.1);
}

.video-duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.video-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(220, 38, 127, 0.9);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Lightbox video player */
.lightbox-video {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
}

/* Video thumbnail styling */
.video-thumbnail-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--gray-100) 100%);
    color: var(--gray-500);
    font-size: 2.5rem;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

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

.video-duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.video-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(220, 38, 127, 0.9);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Photo grid improvements */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--gray-100);
}

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

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 1.5rem;
}

/* Delete mode styling */
.photo-item.delete-mode {
    cursor: pointer;
}

.photo-item.delete-mode .photo-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
}

.photo-item.selected {
    outline: 3px solid var(--primary-blue);
    outline-offset: -3px;
}

.photo-item.selected .delete-overlay {
    display: flex !important;
}

.delete-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 64, 175, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    z-index: 3;
}

.delete-checkbox {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
}

.quick-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(220, 53, 69, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    cursor: pointer;
}

.photo-item:hover .quick-delete-btn {
    opacity: 1;
}

.quick-delete-btn:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

.photo-item.delete-mode .quick-delete-btn {
    display: none;
}

/* Delete mode banner */
.delete-mode-banner {
    background: linear-gradient(135deg, #fef3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    color: #856404;
}

/* Lightbox improvements */

.lightbox.active {
    opacity: 1;
}


.lightbox-video {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 8px;
}

.video-control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.video-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Navigation buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.nav-prev {
    left: 20px;
}

.nav-next {
    right: 20px;
}

/* Empty gallery styling */
.empty-gallery {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-600);
}

.empty-gallery h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

/* Album header improvements */
.album-header {
    margin-bottom: 2rem;
}

.album-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.sharing-badge {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    .album-actions {
        flex-direction: column;
        width: 100%;
    }

    .album-header .d-flex {
        flex-direction: column;
        gap: 1rem;
    }

    .video-type-badge {
        font-size: 9px;
        padding: 2px 6px;
    }

    .video-duration-badge {
        font-size: 10px;
        padding: 1px 4px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
    }

    .nav-prev {
        left: 10px;
    }

    .nav-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .delete-mode-banner .d-flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Fixed Lightbox CSS */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95vw;
    max-height: 85vh;
    text-align: center;
    z-index: 10000;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
    user-select: none;
}

.lightbox-image.zoomed {
    cursor: grab !important;
}

.lightbox-image.zoomed:active {
    cursor: grabbing !important;
}

.lightbox-video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

/* Close button */
.btn-close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    font-size: 18px;
}

.btn-close-lightbox:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Navigation buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    font-size: 20px;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.nav-btn:disabled:hover {
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
}

.nav-prev {
    left: 30px;
}

.nav-next {
    right: 30px;
}

/* Lightbox footer */
.lightbox-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px 30px;
    z-index: 10001;
}

.lightbox-info {
    text-align: center;
    margin-bottom: 15px;
}

.lightbox-info h5 {
    color: white;
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

.lightbox-info small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.lightbox-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.photo-counter {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.zoom-controls {
    display: flex;
    gap: 8px;
}

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

.zoom-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.zoom-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

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

.lightbox-actions .btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-btn {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .nav-prev {
        left: 15px;
    }

    .nav-next {
        right: 15px;
    }

    .btn-close-lightbox {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .lightbox-footer {
        padding: 15px 20px;
    }

    .lightbox-controls {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .zoom-controls {
        order: 1;
    }

    .photo-counter {
        order: 2;
    }

    .lightbox-actions {
        order: 3;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .lightbox-content {
        max-width: 98vw;
        max-height: 80vh;
    }

    .lightbox-info h5 {
        font-size: 16px;
    }

    .lightbox-info small {
        font-size: 12px;
    }

    .zoom-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
}


/* Profile Page Styles */
.user-avatar-large {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initials {
    width: 80px;
    height: 80px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.5rem;
}

.stat-value-sm {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.card-title {
    color: var(--gray-900);
    font-weight: 600;
}