* {
    cursor: url('./arrow-pointer-solid-full.png'), auto;
    font-family: monospace, arial, sans-serif;
    /* font-family: cascadia code, monospace, arial, sans-serif; */
}

.actions button,
.actions a {
    transition: 0.15s ease;
}

.actions button:hover,
.actions a:hover {
    transform: scale(1.1);
}

/* =========================
   BUTTON COLOR STYLE
========================= */
/* Info (blue) */
.icon-info {
    color: #3b82f6;
    transition: 0.15s ease;
}

.icon-info:hover {
    color: #60a5fa;
    transform: translateY(-1px);
}

/* Download (green) */
.icon-download {
    color: #22c55e;
    transition: 0.15s ease;
}

.icon-download:hover {
    color: #4ade80;
    transform: translateY(-1px);
}

/* Delete (red) */
.icon-danger {
    color: #ef4444;
    transition: 0.15s ease;
}

.icon-danger:hover {
    color: #ff6b6b;
    transform: translateY(-1px);
}

/* Optional: shared feel for all icons */
.icon-info,
.icon-download,
.icon-danger {
    cursor: pointer;
}

.icon-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* =========================
   TOAST NOTIFICATIONS
========================= */

.app-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-toast {
    min-width: 220px;
    max-width: 320px;
    padding: 12px 14px;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.25s ease;
    backdrop-filter: blur(10px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.app-toast.success {
    background: rgba(34, 197, 94, 0.9);
}

.app-toast.error {
    background: rgba(239, 68, 68, 0.9);
}

.app-toast.info {
    background: rgba(59, 130, 246, 0.9);
}

@keyframes slideIn {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =========================
   MAIN SECTION
========================= */

body {
    background: #0f172a;
    color: #e2e8f0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto;
}

/* Top bar */
.topbar {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
}

.brand {
    font-weight: 700;
    font-size: 20px;
}

/* Buttons */
.btn-modern {
    border-radius: 10px;
}

/* Game grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.game-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    transition: 0.2s;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.game-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    background: #111827;
}

.game-body {
    padding: 12px;
}

.game-title {
    font-size: 16px;
    font-weight: 600;
}

.meta {
    font-size: 12px;
    opacity: 0.7;
}

.actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
}

.icon-btn:hover {
    color: white;
}

/* Modal dark */
.modal-content {
    background: #111827;
    color: white;
    border-radius: 14px;
}

.form-control,
select {
    background: #0b1220 !important;
    border: 1px solid #1f2937 !important;
    color: white !important;
}

.preview-img {
    width: 70%;
    border-radius: 12px;
    display: none;
    margin-top: 10px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 20px 0;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-card {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);

    padding: 16px;
    border-radius: 14px;

    transition: .2s ease;
}

.user-card:hover {
    border-color: rgba(255, 255, 255, .15);
    transform: translateY(-2px);
}

.user-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-avatar {
    width: 44px;
    height: 44px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;
    font-size: 18px;

    background: #2563eb;
    color: white;
}

.user-info h6 {
    margin: 0;
    font-weight: 600;
}

.user-info small {
    color: #94a3b8;
}

.role-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.role-admin {
    background: rgba(239, 68, 68, .15);
    color: #ef4444;
}

.role-user {
    background: rgba(100, 116, 139, .15);
    color: #94a3b8;
}

.user-actions {
    display: flex;
    gap: 8px;
}

/* Slider background */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #334155;
    transition: 0.3s;
    border-radius: 999px;
}

/* Circle */
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.setting-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    /* important */
}

.setting-switch span {
    font-size: 14px;
    color: #cbd5e1;
    white-space: nowrap;
}

.toolbar-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, .15);
    margin: 0 4px;
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e2e8f0;
    font-size: 14px;
}

.apple-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.apple-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.apple-switch input:checked+.slider {
    background-color: #3b82f6;
}

.apple-switch input:checked+.slider:before {
    transform: translateX(20px);
}

.apple-switch:hover .slider {
    filter: brightness(1.1);
}