body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #0f172a;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: block;
}
.container {
    max-width: 1200px;
    width: 95%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    margin: 40px auto;
}
body.authorized .container {
    display: block !important;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background: #000;
}
.gallery-item:hover {
    transform: scale(1.02);
}
.gallery-item img, .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-item .overlay-btns {
    position: absolute;
    top: 10px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}
.gallery-item:hover .overlay-btns {
    opacity: 1;
}
.btn-action {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.delete-btn { background: rgba(220, 38, 38, 0.9); }
.edit-btn { background: rgba(79, 70, 229, 0.9); }

.gallery-item .description-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px 15px 10px;
    font-size: 0.85rem;
    pointer-events: none;
}

.upload-zone {
    border: 3px dashed #cbd5e1;
    padding: 40px;
    text-align: center;
    border-radius: 20px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}
.upload-zone:hover {
    border-color: #4f46e5;
    background: #f1f5f9;
}
.upload-zone i {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}
.limit-info {
    margin-top: 15px;
    font-weight: 600;
    color: #64748b;
}
