:root {
    --primary-bg: #385843;
    --secondary-bg: #2c4635;
    --text-color: #ffffff;
    --accent-color: #e0e0e0;
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-hover: rgba(255, 255, 255, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-color);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    max-height: 60px;
    width: auto;
}

h1 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0.8rem 1.5rem;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-primary {
    background: #ffffff;
    color: var(--primary-bg);
    font-weight: 600;
}

.btn-primary:hover {
    background: #f0f0f0;
}

.btn-danger {
    background: rgba(220, 53, 69, 0.8);
    color: white;
}

.btn-danger:hover {
    background: rgba(220, 53, 69, 1);
}

/* Grid Layout */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.album-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.album-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
}

.album-cover {
    height: 200px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.album-card:hover .album-cover img {
    transform: scale(1.05);
}

.album-info {
    padding: 1.5rem;
}

.album-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.album-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.delete-album-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 0, 0, 0.7);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    transition: background 0.3s;
}

.delete-album-btn:hover {
    background: rgba(255, 0, 0, 1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #2c4635;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: white;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Gallery View */
.gallery-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.back-btn {
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    opacity: 0.7;
}

.back-btn:hover {
    opacity: 1;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.photo-item {
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.photo-item:hover img {
    opacity: 0.9;
}

/* Upload Area */
.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.hidden {
    display: none;
}

/* Lightbox */
.lightbox {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox.hidden {
    display: none;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

#lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close-lightbox:hover {
    color: #bbb;
}

.prev-photo,
.next-photo {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 2001;
}

.next-photo {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev-photo {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.prev-photo:hover,
.next-photo:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.watermark {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    font-weight: 600;
    pointer-events: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .logo-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .site-logo {
        max-height: 50px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .albums-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.5rem;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .lightbox-content {
        max-width: 100%;
    }

    #lightbox-img {
        max-height: 80vh;
    }

    .prev-photo,
    .next-photo {
        padding: 10px;
        font-size: 24px;
        background: rgba(0, 0, 0, 0.3);
    }

    .close-lightbox {
        top: 10px;
        right: 15px;
        font-size: 35px;
    }

    .watermark {
        font-size: 0.9rem;
        bottom: 10px;
        right: 10px;
    }
}