﻿:root {
    --modamo-blue: #003366; /* H+S / Modamo sötétkék */
    --modamo-hover: #0078d4; /* Világosabb kék hover */
    --modamo-accent: #009688; /* Zöldeskék kiemelés (vagy kék maradhat, ha egységesebb kell) */
    --modamo-dark: #111827;
    --modamo-light: #f8f9fa;
    --modamo-border: #e0e0e0;
}

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

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

    .lorigo-card:hover {
        border-color: rgba(0, 120, 212, 0.5);
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }

.lorigo-card-light {
    background-color: #ffffff !important;
    border: 1px solid var(--modamo-border);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

/* Oldalsó menü sáv */
.admin-sidebar {
    width: 250px;
    background-color: #002244; /* Mély sötétkék */
    color: #ffffff;
    padding: 20px 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-header {
    padding: 0 20px 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

    .sidebar-header h4 {
        font-family: 'Inter', sans-serif;
        color: #ffffff;
        font-weight: 700;
        font-size: 1.2rem;
        margin-bottom: 0;
    }

/* Navigációs linkek */
.admin-sidebar .nav-link {
    color: #d1d5db; /* Világosszürke */
    padding: 12px 25px;
    transition: all 0.2s ease;
    font-weight: 500;
    border-left: 4px solid transparent;
}

    .admin-sidebar .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.08);
        color: #ffffff;
        border-left: 4px solid var(--modamo-hover);
    }

    /* Aktív menüpont */
    .admin-sidebar .nav-link.active {
        background-color: rgba(0, 120, 212, 0.2);
        color: #ffffff;
        border-left: 4px solid var(--modamo-hover);
    }

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

    .nav-link.text-warning:hover {
        opacity: 1;
        background: none;
        color: #ffffff !important;
    }

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

.admin-header {
    height: 60px;
    background: white;
    border-bottom: 1px solid var(--modamo-border);
}

.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.05);
    width: 100%;
    margin-bottom: 2rem;
}

    .admin-table th {
        background-color: #f1f5f9;
        color: #1e293b;
        padding: 12px;
        font-weight: 600;
    }

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

/* Gombok az adminban */
.btn-admin {
    border-radius: 4px;
    font-weight: 500;
    text-transform: none;
}

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

/* Admin kártyák alapstílusa */
.admin-card {
    border: 1px solid var(--modamo-border);
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    background: white;
}

    .admin-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    }

/* Sötétkék kártya háttér */
.bg-admin-products {
    background-color: #003366 !important;
    color: #ffffff !important;
}

/* Világoskék / akcentus kártya háttér */
.bg-admin-workshops {
    background-color: #0078d4 !important;
    color: #ffffff !important;
}

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

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

.admin-title {
    color: #003366;
    font-weight: 700;
}

.btn-admin-gold {
    background-color: #0078d4; /* Kékre cserélve az arany helyett */
    color: white;
    font-weight: 600;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

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

.admin-card-bg {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--modamo-border);
}

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

/* A táblázat fejléc színe */
.admin-table thead th {
    background-color: #f1f5f9;
    color: #003366;
    border-bottom: 2px solid #0078d4;
}

/* Létszámszámláló gombok */
.btn-counter {
    background-color: #f8f9fa;
    border: 1px solid #cbd5e1;
    color: #334155;
    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: #0078d4;
        color: white;
        border-color: #0078d4;
    }

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

.counter-full {
    color: #dc3545;
    font-weight: bold;
}

.admin-thumb-placeholder {
    width: 50px;
    height: 50px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #94a3b8;
}

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

    .border-dashed:hover {
        background-color: #eff6ff;
        border-color: #0078d4;
    }

.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 kékre */
.form-check-input:checked {
    background-color: #0078d4;
    border-color: #0078d4;
}

.custom-input:focus {
    border-color: #0078d4;
    box-shadow: 0 0 0 0.2rem rgba(0, 120, 212, 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.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

/* Modális ablak */
.custom-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid var(--modamo-border);
    animation: fadeIn 0.2s ease-out;
}

/* A Modal Fejléce */
.modal-header-gold {
    background-color: #003366; /* Sötétkék fejléc */
    padding: 1.25rem 1.5rem;
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
    border-bottom: 2px solid #0078d4; /* Kék vonalas elválasztó */
}

    .modal-header-gold h4,
    .modal-header-gold h3,
    .modal-header-gold .modal-title {
        color: #ffffff !important;
        font-family: 'Inter', sans-serif;
        margin: 0;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    .modal-header-gold i {
        color: #93c5fd;
        margin-right: 10px;
    }

/* A Modal lábrésze a gombokkal */
.modal-footer-gold {
    background-color: #f8f9fa;
    border-top: 1px solid #e2e8f0;
    border-bottom-left-radius: 11px;
    border-bottom-right-radius: 11px;
    padding: 1rem 1.5rem;
}
