:root {
    --bs-body-bg: #f8f9fa;
    --bs-body-color: #212529;
}

body {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-family: 'Inter', 'Prompt', sans-serif;
}

/* Gallery Grid */
.photo-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 0.5rem;
    cursor: pointer;
    border: 1px solid #dee2e6;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.photo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    gap: 0.5rem;
    z-index: 10;
}

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

/* Admin UI Styles */
.admin-photo-item {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 1px solid #dee2e6;
}

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

.admin-photo-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    gap: 0.5rem;
}

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

.btn-delete-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    transition: transform 0.2s ease;
    font-size: 0.85rem;
}

.btn-delete-photo:hover {
    transform: scale(1.1);
    color: white;
}

.btn-rotate-left {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0dcaf0;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    transition: transform 0.2s ease;
    font-size: 0.85rem;
}

.btn-rotate-left:hover {
    transform: scale(1.1);
    color: white;
}

.btn-rotate-right {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0d6efd;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    transition: transform 0.2s ease;
    font-size: 0.85rem;
}

.btn-rotate-right:hover {
    transform: scale(1.1);
    color: white;
}

.btn-rotate-180 {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fd7e14;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    transition: transform 0.2s ease;
    font-size: 0.85rem;
}

.btn-rotate-180:hover {
    transform: scale(1.1);
    color: white;
}

.btn-preview-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #198754;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    transition: transform 0.2s ease;
    font-size: 0.85rem;
}

.btn-preview-photo:hover {
    transform: scale(1.1);
    color: white;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8f9fa;
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: #0d6efd;
    background: #e9ecef;
}

/* Lightbox */
#lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
}

#lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.25rem;
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.5);
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
    user-select: none;
}

.lb-nav:hover {
    background: rgba(255, 255, 255, 0.4);
}

.lb-prev { left: -60px; }
.lb-next { right: -60px; }

.lb-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
}

.lb-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.lb-btn:hover {
    background: white;
    color: black;
}

/* Embed Mode */
.embed-mode body {
    background: transparent !important;
}
.embed-mode .navbar, .embed-mode .lb-actions, .embed-mode #albumTabsContainer {
    display: none !important;
}

@media (max-width: 768px) {
    .lb-prev { left: 10px; }
    .lb-next { right: 10px; }
    .lb-nav { background: rgba(0,0,0,0.5); }
}

/* ==========================================================================
   Modern Login & Glassmorphism Theme (Aesthetics Update)
   ========================================================================== */
.login-page-wrapper {
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(30, 41, 59, 0.85)), url('../../img/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    padding: 1.5rem;
}

.login-card {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 1.5rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    max-width: 480px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6) !important;
}

.login-logo {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

.login-logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.login-card h2 {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800 !important;
}

.login-card .form-control {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(203, 213, 225, 1);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.login-card .form-control:focus {
    background: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2) !important;
}

.login-card .input-group-text {
    border-radius: 0.75rem;
    border-color: rgba(203, 213, 225, 1);
}

.login-card .btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    border: none !important;
    border-radius: 0.75rem !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease !important;
}

.login-card .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}

.login-card .btn-primary:disabled {
    background: #94a3b8 !important;
    opacity: 0.8;
    cursor: not-allowed;
}

.grecaptcha-badge {
    z-index: 10000 !important;
}
