/* ======================================= */
/* === GIAO DIỆN SÁNG CHO TRANG ADMIN (ĐÃ CẬP NHẬT) === */
/* ======================================= */

body.admin-page {
    background-color: #f4f6f9;
    color: #212529;
    overflow-y: auto;
    font-family: 'Roboto', sans-serif;
}

body.admin-page .header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

body.admin-page .back-button {
    text-decoration: none;
    font-weight: bold;
    color: #555;
    transition: color 0.2s;
}
body.admin-page .back-button:hover {
    color: var(--primary-red);
}

body.admin-page .logout-button {
    display: flex; align-items: center; gap: 8px; background-color: transparent; border: 1px solid #ddd; border-radius: 8px; padding: 8px 15px; cursor: pointer; transition: all 0.2s;
}
body.admin-page .logout-button:hover { background-color: #f1f1f1; border-color: #ccc; }
body.admin-page .logout-button span { color: #333; }
body.admin-page .logout-button svg { stroke: #333; }

.admin-main-container, main.fadeIn { max-width: 1200px; margin: 30px auto; padding: 20px; text-align: left; }
body.admin-page h1, body.admin-page h2, body.admin-page h3, body.admin-page h4 { color: #343a40; font-family: 'Poppins', sans-serif; }

.admin-menu-card, .card {
    background-color: #ffffff; border: 1px solid #dee2e6; border-radius: 12px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); color: #333; padding: 25px; text-decoration: none; transition: all 0.2s ease-in-out;
}
.admin-menu-card:hover, .card:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); }
/* THAY ĐỔI: Icon màu cam */
.admin-menu-card .icon svg { width: 32px; height: 32px; stroke: var(--primary-red); margin-bottom: 15px; }
.admin-menu-card h3 { margin-bottom: 10px; }
.admin-menu-card p { color: #6c757d; font-size: 0.9em; }

.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }

.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.search-bar, .coin-controls input, .form-group input, .form-control { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid #ced4da; background-color: #fff; color: #495057; box-sizing: border-box; }
.search-bar:focus, .coin-controls input:focus, .form-group input:focus, .form-control:focus { outline: none; border-color: var(--primary-red); box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.15); }

.user-item { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 1px solid #e9ecef; }
.user-item:last-child { border-bottom: none; }
.coin-controls { display: flex; align-items: center; gap: 10px; }
.coin-controls input { width: 100px; }

.btn-danger { background: #dc3545; color: white; border: none; border-radius: 8px; padding: 8px 12px; cursor: pointer; font-weight: 500; }
.btn-danger:hover { background: #c82333; }
.header-right-group { display: flex; align-items: center; gap: 20px; }
#admin-coin-display { font-weight: bold; color: #333; background-color: #e9ecef; padding: 8px 15px; border-radius: 8px; }

#toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; width: 350px; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #2d3436; color: #dfe6e9; padding: 16px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25); border: 1px solid #4b5457; display: flex; align-items: center; gap: 12px; position: relative; overflow: hidden; transform: translateX(120%); opacity: 0; transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
.toast.show { transform: translateX(0); opacity: 1; }
.toast.hide { transform: translateX(120%); opacity: 0; }
.toast-icon svg { width: 24px; height: 24px; flex-shrink: 0; }
.toast.success .toast-icon { color: #00b894; }
.toast.error .toast-icon { color: #d63031; }
.toast-message { font-weight: 500; }
.toast::after { content: ''; position: absolute; bottom: 0; left: 0; height: 4px; width: 100%; animation: toast-progress 4s linear forwards; }
.toast.success::after { background-color: #00b894; }
.toast.error::after { background-color: #d63031; }
@keyframes toast-progress { from { width: 100%; } to { width: 0%; } }

.modal-alert { padding: 12px 15px; margin-top: 15px; border-radius: 6px; border: 1px solid transparent; display: none; align-items: center; gap: 10px; font-weight: 500; }
.modal-alert.show { display: flex; }
.modal-alert-success { background-color: #e9f7ef; border-color: #a1d9b4; color: #2a6f44; }
.modal-alert-error { background-color: #fdecea; border-color: #f8c0b3; color: #9b2c14; }

.btn-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn-loading::after { content: ''; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin-top: -10px; margin-left: -10px; border: 3px solid rgba(255, 255, 255, 0.5); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn-success { background: #28a745 !important; }

/* THAY ĐỔI: Thẻ tag admin màu cam */
.admin-brand-tag {
    background-color: var(--primary-red);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: bold;
}