﻿:root {
    --lorigo-red: #e31c23;
    --lorigo-dark: #09090b;
    --lorigo-white: #000000;
    --lorigo-card: #18181b;
    --lorigo-border: #27272a;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: #f4f6f9;
}

.lorigo-card {
    background-color: var(--lorigo-card);
    border: 1px solid var(--lorigo-border);
    border-radius: 1.5rem;
    transition: all 0.4s ease;
    cursor: pointer;
}

    .lorigo-card:hover {
        border-color: rgba(227, 28, 35, 0.5);
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

.lorigo-card-light {
    background-color: var(--lorigo-white) !important;
    border: 1px solid var(--lorigo-border);
    border-radius: 1.5rem;
    transition: all 0.4s ease;    
}

/* Oldalsó menü sáv */
.admin-sidebar {
    width: 250px;
    background-color: #2b1a10; /* Mélyebb csokoládébarna */
    color: #f1e5d1;
    padding: 20px 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
}

.sidebar-header {
    padding: 0 20px 20px 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2); /* Finom arany választóvonal */
}

    .sidebar-header h4 {
        font-family: 'Berkshire Swash', cursive;
        color: #d4af37; /* Arany */
        margin-bottom: 0;
    }

/* Navigációs linkek */
.admin-sidebar .nav-link {
    color: #f1e5d1; /* Krém színű szöveg */
    padding: 12px 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 4px solid transparent; /* Aktív állapot jelzője */
}

    .admin-sidebar .nav-link:hover {
        background-color: rgba(212, 175, 55, 0.1);
        color: #d4af37;
        border-left: 4px solid #d4af37;
    }

    /* Aktív menüpont (Blazor NavLink active osztálya) */
    .admin-sidebar .nav-link.active {
        background-color: rgba(212, 175, 55, 0.15);
        color: #d4af37;
        border-left: 4px solid #d4af37;
    }

/* Vissza a főoldalra link */
.nav-link.text-warning {
    color: #d4af37 !important;
    margin-top: 30px;
    font-style: italic;
    opacity: 0.8;
}

    .nav-link.text-warning:hover {
        opacity: 1;
        background: none;
    }

.admin-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.admin-header {
    height: 60px;
    background: white;
}

.admin-content {
    overflow-y: auto;
}

/* Az AdminLayout-hoz igazított struktúra */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-content-area {
    flex: 1;
    padding: 2rem;
    background-color: #f8f9fa;
}

/* Táblázatok stílusa az admin felületen */
.admin-table {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    margin-bottom: 2rem;
}

    .admin-table th {
        background-color: #343a40;
        color: white;
        padding: 12px;
    }

    .admin-table td {
        padding: 12px;
        border-bottom: 1px solid #dee2e6;
        vertical-align: middle;
    }

/* Gombok az adminban (kicsit szögletesebb, funkcionálisabb) */
.btn-admin {
    border-radius: 4px;
    font-weight: 500;
    text-transform: none; /* Itt nem kell a nagybetűs elegancia */
}

/* Kép előnézet a táblázatban */
.admin-img-preview {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

/* Admin kártyák alapstílusa */
.admin-card {
    border: none;
    border-radius: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

    .admin-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

/* Kék helyett: Sötét csokoládé barna */
.bg-admin-products {
    background-color: #3d2516 !important;
    color: #f8f9fa !important;
}

/* Zöld helyett: Elegáns arany vagy lágy menta */
.bg-admin-workshops {
    background-color: #d4af37 !important; /* Arany */
    color: #3d2516 !important;
}

/* A gombok az admin kártyákon belül */
.btn-admin-light {
    background-color: rgba(255, 255, 255, 0.9);
    color: #3d2516;
    border: none;
    font-weight: bold;
    border-radius: 8px;
}

    .btn-admin-light:hover {
        background-color: #ffffff;
        color: #000;
    }


.admin-title {
    color: #3d2516;
    font-family: 'Berkshire Swash', cursive;
}

.btn-admin-gold {
    background-color: #d4af37;
    color: #3d2516;
    font-weight: bold;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
}

    .btn-admin-gold:hover {
        background-color: #b8962d;
        color: white;
    }

.admin-card-bg {
    background: white;
    padding: 20px;
    border-radius: 15px;
}

.admin-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* A táblázat fejléc színe */
.admin-table thead th {
    background-color: #f8f5f0;
    color: #3d2516;
    border-bottom: 2px solid #d4af37;
}

/* Létszámszámláló gombok */
.btn-counter {
    background-color: #f8f5f0;
    border: 1px solid #d4af37;
    color: #3d2516;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    transition: all 0.2s;
}

    .btn-counter:hover {
        background-color: #d4af37;
        color: white;
    }

.counter-text {
    min-width: 50px;
    color: #3d2516;
    font-size: 0.9rem;
}

/* Ha a létszám eléri a maximumot, pirosas kontúr */
.counter-full {
    color: #dc3545;
    font-weight: bold;
}

.admin-thumb-placeholder {
    width: 50px;
    height: 50px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #ccc;
}

.border-dashed {
    border: 2px dashed #d4b081;
    border-radius: 8px;
    background-color: #fffaf0;
    transition: all 0.3s;
    cursor: pointer;
}

    .border-dashed:hover {
        background-color: #f2e8d5;
        border-color: #3d2516;
    }

.gallery-admin-item .delete-overlay {
    position: absolute;
    top: 5px;
    right: 5px;
    opacity: 0;
    transition: opacity 0.2s;
}

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

.btn-xs {
    padding: 0.1rem 0.3rem;
    font-size: 0.75rem;
}

/* Form switch (kapcsoló) színe aranyra */
.form-check-input:checked {
    background-color: #d4af37;
    border-color: #d4af37;
}

.custom-input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* Modális háttér */
.custom-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

/* Modális ablak */
.custom-modal {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    animation: fadeIn 0.3s ease-out;
}

/* A Modal Fejléce */
.modal-header-gold {
    background-color: #3d2516; /* A márka sötétbarna színe */
    padding: 1.25rem 1.5rem;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 2px solid #c9a050; /* Egy vékony arany választóvonal */
}

    /* A fejlécben lévő szöveg kényszerítése világosra */
    .modal-header-gold h4,
    .modal-header-gold h3,
    .modal-header-gold .modal-title {
        color: #f8f1e5 !important; /* Krémfehér szín az olvashatóságért */
        font-family: 'Playfair Display', serif; /* Ha használod a márkád betűtípusát */
        margin: 0;
        font-weight: 600;
        letter-spacing: 1px;
    }

    /* Ikon színe a fejlécben (ha van) */
    .modal-header-gold i {
        color: #c9a050; /* Az ikon legyen arany színű */
        margin-right: 10px;
    }

/* A Modal lábrésze a gombokkal */
.modal-footer-gold {
    background-color: #fdfbf7;
    border-top: 1px solid #eee;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* A modal váza az árnyékkal */
.custom-modal {
    background: white;
    border-radius: 10px;
    border: none;
    max-width: 600px;
    width: 90%;
    position: relative;
    z-index: 1050;
}
