/* --- GALLERY GRID (Updated) --- */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-item {
    position: relative;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
    aspect-ratio: 4/3; /* Maintain consistent aspect ratio */
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--neon-lime);
    box-shadow: 0 15px 40px rgba(204, 255, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill the frame elegantly */
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05); /* Subtle zoom on hover */
}

.img-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--neon-lime);
    border: 1px solid rgba(204, 255, 0, 0.3);
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.img-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    gap: 10px;
}

/* --- ADMIN LAYOUT --- */
.admin-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.admin-sidebar {
    width: 250px;
    background: rgba(10, 10, 10, 0.95);
    border-right: 1px solid var(--glass-border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
}

.admin-content {
    flex: 1;
    margin-left: 250px; /* Offset for fixed sidebar */
    padding: 30px;
    width: calc(100% - 250px);
}

.admin-nav-item {
    padding: 12px 15px;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-nav-item:hover, .admin-nav-item.active {
    background: rgba(204, 255, 0, 0.1);
    color: var(--neon-lime);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* --- GLASS TABLE --- */
.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.glass-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.02);
}

.glass-table th, .glass-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
    color: #ddd;
}

.glass-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--neon-lime);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.glass-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.glass-table td {
    font-size: 0.9rem;
}
