body {
    background-color: #0b0b0b;
    font-family: 'Roboto', sans-serif;
    color: #fff;
    margin: 0;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */

.sidebar {
    width: 240px;
    background: #111;
    border-right: 1px solid #222;
    padding: 30px 20px;
}

.sidebar h2 {
    font-size: 18px;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.sidebar a {
    display: block;
    padding: 10px 0;
    color: #aaa;
    text-decoration: none;
    transition: 0.2s;
}

.sidebar a:hover {
    color: #1e88ff;
}

/* Main content */

.main-content {
    flex: 1;
    padding: 40px;
}

/* Cards */

.admin-card {
    background: #151515;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

/* Buttons */

.btn-admin {
    background: linear-gradient(135deg, #1e88ff, #3aa0ff);
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30,136,255,0.35);
}

/* Inputs */

.admin-input {
    background: #101010;
    border: 1px solid #2a2a2a;
    color: white;
    border-radius: 6px;
    padding: 10px;
    width: 100%;
    margin-bottom: 15px;
}

img {
    filter: drop-shadow(0 0 8px rgba(30,136,255,0.3));
}

/* Topbar */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.admin-user a {
    color: #aaa;
    transition: 0.2s;
    font-size: 18px;
}

.admin-user a:hover {
    color: #ff4d4d;
}

/* Sidebar icons */

.sidebar a i {
    margin-right: 10px;
    width: 20px;
}

table th {
    font-size: 13px;
    text-transform: uppercase;
    color: #888;
}

table td {
    padding: 12px 0;
}

.topbar {
    display:flex;
    justify-content:flex-end;
    align-items:center;
    padding:15px 30px;
    border-bottom:1px solid #1a1a1a;
}

.topbar-right {
    display:flex;
    align-items:center;
    gap:20px;
}

.admin-user {
    font-weight:600;
    color:#fff;
}

.logout-btn {
    background:#1e88ff;
    padding:6px 14px;
    border-radius:6px;
    text-decoration:none;
    color:white;
    font-size:14px;
}

.logout-btn:hover {
    background:#1976d2;
}

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

.admin-table th {
    text-align:left;
    font-size:13px;
    color:#888;
    padding:15px 10px;
    border-bottom:1px solid #222;
}

.admin-table td {
    padding:18px 10px;
    border-bottom:1px solid #111;
    vertical-align:middle;
}

.admin-table tr:hover {
    background:#111;
}

.order-total {
    font-weight:700;
    font-size:15px;
    background:#111;
    padding:6px 10px;
    border-radius:6px;
    display:inline-block;
}

.status-badge {
    padding:6px 10px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
}

.status-pending {
    background:#332500;
    color:#ff9800;
}

.status-paid {
    background:#0f2e1a;
    color:#4CAF50;
}

.status-cancelled {
    background:#2e0f0f;
    color:#ff4d4d;
}

.btn-primary {
    background:#1e88ff;
    border:none;
    padding:8px 14px;
    border-radius:6px;
    color:#fff;
    cursor:pointer;
    font-size:13px;
}

.btn-primary:hover {
    background:#1976d2;
}

.status-select {
    background:#111;
    border:1px solid #222;
    color:#fff;
    padding:6px 10px;
    border-radius:6px;
}

/* ============================= */
/* ORDERS TOOLBAR */
/* ============================= */

.orders-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

/* FILTROS (columna izquierda) */
.filters-column {
    display: flex;
    flex-direction: column;
    max-width: 220px;
}

.filter-group label {
    font-size: 12px;
    color: #777;
    margin-bottom: 4px;
}

.filter-btn {
    margin-top: 6px;
    width: fit-content;
    padding: 8px 18px;
}

/* SUMMARY (lado derecho) */
.orders-summary {
    display: flex;
    gap: 20px;
}

.summary-card {
    background: #111;
    padding: 18px 22px;
    border-radius: 12px;
    min-width: 190px;
    border: 1px solid #1c1c1c;
}

.summary-card span {
    font-size: 12px;
    color: #777;
}

.summary-card h2 {
    margin-top: 6px;
    font-size: 22px;
    color: #00ffae;
}

/* Fila clickeable */
.order-row {
    cursor: pointer;
    transition: background 0.2s;
}

.order-row:hover {
    background: #111;
}

/* Flechita */
.toggle-icon {
    transition: transform 0.2s ease;
    color: #666;
    font-size: 13px;
}