/* LE COIN G. — Backoffice Admin CSS */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --admin-bg: #1A090D;
    --admin-sidebar: #240C12;
    --admin-card: #2E1119;
    --admin-border: rgba(212, 175, 55, 0.25);
    
    --admin-text: #F5EFE6;
    --admin-muted: #BCA8AD;
    
    --gold: #D4AF37;
    --copper: #C87A57;
    --success: #28a745;
    --danger: #dc3545;
}

body.admin-body {
    background-color: var(--admin-bg);
    color: var(--admin-text);
    font-family: 'Outfit', sans-serif;
    display: flex;
    min-height: 100vh;
    margin: 0;
}

/* Sidebar */
.admin-sidebar {
    width: 215px;
    min-width: 215px;
    background: var(--admin-sidebar);
    border-right: 1px solid var(--admin-border);
    padding: 25px 12px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.admin-brand {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.08em;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
    padding: 0;
    margin: 0;
}

.admin-menu-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--admin-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.admin-menu-item a:hover,
.admin-menu-item.active a {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
}

.admin-logout-btn {
    background: rgba(220, 53, 69, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(220, 53, 69, 0.3);
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
}

.admin-logout-btn:hover {
    background: #dc3545;
    color: #fff;
}

/* Main Content Area */
.admin-main {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
    width: calc(100% - 215px);
    box-sizing: border-box;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--admin-border);
}

.admin-title {
    font-size: 1.6rem;
    color: var(--admin-text);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    padding: 18px;
    border-radius: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-top: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--admin-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Admin Tables */
.admin-card-box {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    overflow-x: auto;
}

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

.admin-table th,
.admin-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.88rem;
}

.admin-table th {
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    background: rgba(0,0,0,0.2);
    white-space: nowrap;
}

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

/* Buttons & Presets */
.btn-admin-primary {
    background: var(--gold);
    color: #1A090D;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-admin-primary:hover {
    background: #e8ca68;
    box-shadow: 0 4px 15px rgba(212,175,55,0.3);
}

.btn-admin-secondary {
    background: transparent;
    border: 1px solid var(--copper);
    color: var(--copper);
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-admin-secondary:hover {
    background: var(--copper);
    color: #fff;
}

.preset-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn-preset {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--admin-border);
    color: var(--admin-text);
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.btn-preset:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212,175,55,0.1);
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
}

.badge-success { background: rgba(40,167,69,0.2); color: #5dd579; border: 1px solid #28a745; }
.badge-warning { background: rgba(255,193,7,0.2); color: #ffe066; border: 1px solid #ffc107; }
.badge-danger { background: rgba(220,53,69,0.2); color: #ff8787; border: 1px solid #dc3545; }

/* Uniform Form Inputs & Custom Selects */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="datetime-local"],
input[type="file"],
select {
    height: 46px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.9rem;
    vertical-align: middle;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23D4AF37' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 38px !important;
    cursor: pointer;
}
