/* admin.css - Premium Dashboard Styles */
:root {
    --bg-midnight: #0a0a0a;
    --bg-card: #141414;
    --bg-input: #1f1f1f;
    --color-gold-light: #fcf6ba;
    --color-gold-mid: #bf953f;
    --color-gold-dark: #8a6d3b;
    --color-text: #e0e0e0;
    --color-text-dim: #999;
    --color-success: #2ec4b6;
    --color-danger: #e63946;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --border-gold: linear-gradient(90deg, #8a6d3b, #fcf6ba, #d4af37, #fcf6ba, #8a6d3b);
}

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

body {
    background-color: var(--bg-midnight);
    color: var(--color-text);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- LOGIN SCREEN --- */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: radial-gradient(circle at center, #1a150e 0%, #050505 100%);
}

.login-card {
    background: rgba(20, 20, 20, 0.75);
    border: 1px solid rgba(191, 149, 63, 0.35);
    border-radius: 16px;
    padding: 40px 30px;
    width: 100%;
    max-width: 440px;
    backdrop-filter: blur(16px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    text-align: center;
    animation: fadeInDown 0.6s ease;
}

.login-logo {
    width: 80px;
    margin-bottom: 20px;
}

.login-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    background: linear-gradient(to bottom, var(--color-gold-light) 0%, var(--color-gold-mid) 60%, var(--color-gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.login-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-dim);
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-gold-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-gold-mid);
    box-shadow: 0 0 8px rgba(191, 149, 63, 0.3);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--color-gold-mid), var(--color-gold-dark));
    color: #000;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(191, 149, 63, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(191, 149, 63, 0.4);
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold-mid));
}

.error-message {
    color: var(--color-danger);
    background: rgba(230, 57, 70, 0.15);
    border: 1px solid var(--color-danger);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: none;
}

/* --- DASHBOARD HEADER --- */
.dashboard-header {
    background: var(--bg-card);
    border-bottom: 2px solid;
    border-image: var(--border-gold) 1;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-section img {
    height: 50px;
}

.logo-section h1 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-gold-light);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-badge {
    background: rgba(191, 149, 63, 0.15);
    border: 1px solid var(--color-gold-mid);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--color-gold-light);
}

.btn-secondary {
    background: transparent;
    color: var(--color-gold-light);
    border: 1px solid var(--color-gold-mid);
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--color-gold-mid);
    color: #000;
}

/* --- DASHBOARD CONTAINER & TABS --- */
.dashboard-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.tab-nav {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--color-text-dim);
    padding: 12px 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--color-gold-light);
}

.tab-btn.active {
    color: var(--color-gold-mid);
    border-bottom-color: var(--color-gold-mid);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

/* --- CARDS & GRID LAYOUTS --- */
.panel-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .panel-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.dashboard-card h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-gold-light);
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(191, 149, 63, 0.2);
    padding-bottom: 10px;
}

/* --- IMAGE PREVIEW GRID & MANAGEMENT --- */
.image-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.admin-img-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
    position: relative;
}

.admin-img-card:hover {
    transform: translateY(-3px);
    border-color: rgba(191, 149, 63, 0.3);
}

.admin-img-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.admin-img-details {
    padding: 15px;
}

.admin-img-details h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-img-details p {
    font-size: 0.8rem;
    color: var(--color-text-dim);
    margin-bottom: 12px;
    height: 32px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tag-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
}

.tag-badge.year {
    background: rgba(191, 149, 63, 0.15);
    color: var(--color-gold-light);
    border: 1px solid rgba(191, 149, 63, 0.3);
}

.card-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-danger {
    background: rgba(230, 57, 70, 0.15);
    color: var(--color-danger);
    border: 1px solid var(--color-danger);
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: var(--color-danger);
    color: #fff;
}

/* --- LIST TABLES FOR MANAGE ITEMS --- */
.item-table-wrapper {
    overflow-x: auto;
}

.item-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.item-table th, .item-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.item-table th {
    color: var(--color-gold-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.2);
}

.item-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* --- EXPORT/IMPORT SECTION --- */
.database-code-area {
    width: 100%;
    height: 350px;
    background: #050505;
    border: 1px solid rgba(255,255,255,0.1);
    color: #00ff66;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    padding: 15px;
    border-radius: 8px;
    resize: none;
    margin-bottom: 15px;
}

.export-box {
    text-align: center;
    padding: 40px;
    background: rgba(191, 149, 63, 0.05);
    border: 2px dashed rgba(191, 149, 63, 0.3);
    border-radius: 12px;
    margin-bottom: 30px;
}

.export-box h4 {
    font-size: 1.2rem;
    color: var(--color-gold-light);
    margin-bottom: 10px;
}

.export-box p {
    color: var(--color-text-dim);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* --- NOTIFICATIONS --- */
.notification-banner {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-card);
    border: 1px solid var(--color-gold-mid);
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    transform: translateY(150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notification-banner.show {
    transform: translateY(0);
}

.notification-banner.success {
    border-left: 5px solid var(--color-success);
}

.notification-banner.error {
    border-left: 5px solid var(--color-danger);
}

/* --- FILE UPLOAD ZONE --- */
.upload-zone {
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    background: rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.upload-zone:hover {
    border-color: var(--color-gold-mid);
    background: rgba(191, 149, 63, 0.05);
}

.upload-zone i {
    font-size: 2rem;
    color: var(--color-gold-mid);
    margin-bottom: 10px;
}

.upload-zone span {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-dim);
}

.image-preview-thumbnail {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- ANIMATIONS --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
