/* --- RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f4f6f9;
}

/* ================= LOGIN PAGE ================= */

.login-container {
    width: 360px;
    padding: 35px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    text-align: center;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.login-container h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.login-container input,
.login-container select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: 0.3s;
}

.login-container input:focus,
.login-container select:focus {
    border-color: #3498db;
    outline: none;
}

.login-container button {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.login-container button:hover {
    background: #2c80b4;
}

/* ================= DASHBOARD ================= */

/* SIDEBAR */
.sidebar {
    width: 220px;
    height: 100vh;
    background: #1f2d3d;
    color: white;
    position: fixed;
    padding: 20px;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 20px;
}

.sidebar a {
    display: block;
    color: #cfd8dc;
    text-decoration: none;
    padding: 10px;
    margin: 8px 0;
    border-radius: 6px;
    transition: 0.3s;
}

.sidebar a:hover {
    background: #34495e;
    color: white;
}

/* MAIN CONTENT */
.main {
    margin-left: 240px;
    padding: 20px;
}

/* TOPBAR */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #3498db;
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
}

.topbar input {
    padding: 8px;
    border-radius: 6px;
    border: none;
}

/* CARDS (FIXED RESPONSIVE) */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.card {
    padding: 20px;
    border-radius: 12px;
    color: white;
    text-align: center;
    font-size: 16px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.card h3 {
    margin-bottom: 10px;
    font-weight: 500;
}

.card p {
    font-size: 24px;
    font-weight: bold;
}

/* COLORS */
.blue { background: #00bcd4; }
.pink { background: #e91e63; }
.orange { background: #ff9800; }
.purple { background: #673ab7; }
.yellow { background: #f1c40f; }
.teal { background: #009688; }

/* CONTENT SECTION */
.content {
    display: flex;
    margin-top: 20px;
    gap: 20px;
}

/* ACTIVITY TABLE */
.activity {
    flex: 2;
    background: white;
    padding: 15px;
    border-radius: 10px;
}

.activity table {
    width: 100%;
    border-collapse: collapse;
}

.activity th {
    background: #3498db;
    color: white;
    padding: 10px;
}

.activity td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

/* STATUS BOX */
.status {
    flex: 1;
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

/* CIRCLE */
.circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: green;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    font-size: 24px;
}

/* ================= COMMON ================= */

/* BUTTONS (STANDARDIZED) */
button,
.btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
    transition: 0.3s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

button:hover,
.btn:hover {
    background: #2c80b4;
}

/* LINKS */
a {
    text-decoration: none;
}

/* ================= ADMIN FINAL (CLEAN + PROFESSIONAL) ================= */

/* HEADER */
.section-header h2 {
    font-size: 26px;
    color: #2c3e50;
}

.section-header p {
    color: #7f8c8d;
    margin-top: 5px;
}

/* ================= CARDS ================= */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* FIXED CARD VISIBILITY */
.card {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    color: #fff; /* FIXED visibility */
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* CARD TEXT */
.card h4 {
    font-size: 16px;
    opacity: 0.95;
}

.card p {
    font-size: 30px;
    font-weight: bold;
    margin-top: 8px;
}

/* MODERN COLORS */
.card1 {
    background: linear-gradient(135deg, #4facfe, #00c6ff);
}

.card2 {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.card3 {
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #2c3e50; /* dark text for yellow */
}

/* HOVER EFFECT */
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

/* ================= GRID ================= */
.dashboard-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    margin-top: 25px;
    align-items: start;
}

/* ================= FORM ================= */
.form-container {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 12px rgba(0,0,0,0.08);
}

.form-container h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.user-form input,
.user-form select {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: 0.2s;
}

.user-form input:focus,
.user-form select:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52,152,219,0.3);
}

/* ================= TABLE ================= */
.table-container {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 5px 12px rgba(0,0,0,0.08);
}

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

.table-header h3 {
    color: #2c3e50;
}

/* SEARCH */
.search-box {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: 0.3s;
}

.search-box:focus {
    border-color: #3498db;
    width: 220px;
}

/* TABLE */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.styled-table th {
    background: #3498db;
    color: white;
    padding: 12px;
    text-align: left;
}

.styled-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.styled-table tr:hover {
    background: #f1f9ff;
}

/* ================= ROLE BADGES ================= */
.role {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: white;
    text-transform: capitalize;
}

.role.admin {
    background: #e74c3c;
}

.role.user {
    background: #2ecc71;
}

/* ================= BUTTONS ================= */
.btn {
    padding: 8px 14px;
    border-radius: 6px;
    background: #3498db;
    color: white;
    font-weight: 500;
    transition: 0.3s;
}

.btn:hover {
    background: #2c80b4;
}

.logout-btn {
    background: #e74c3c;
}

.delete-btn {
    background: #e74c3c;
}

.delete-btn:hover {
    background: #c0392b;
}

.primary-btn {
    width: 100%;
    margin-top: 10px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: 1fr;
    }
}

/* 🔽 DROPDOWN MENU */
.menu {
    margin: 10px 0;
}

.menu-title {
    padding: 10px;
    color: #cfd8dc;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.3s;
}

.menu-title:hover {
    background: #34495e;
    color: white;
}

.submenu {
    display: none;
    padding-left: 15px;
}

.submenu a {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    color: #b0bec5;
    text-decoration: none;
    font-size: 14px;
    border-radius: 5px;
}

.submenu a:hover {
    background: #2c3e50;
    color: white;
}

.submenu span {
    background: #555;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
}
.menu-title {
    cursor: pointer;
}

/* ================= TOPBAR ACTION BUTTONS ================= */

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

/* Right side buttons container */
.top-actions {
    display: flex;
    gap: 12px;
}

/* Add Asset button (highlighted) */
.btn-add {
    background-color: #ffffff;
    color: #007bff;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #007bff;
    transition: 0.3s;
}

.btn-add:hover {
    background-color: #007bff;
    color: #ffffff;
}

/* Back button (simple link style) */
.btn-back {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.styled-table td {
    text-align: center;
}

.styled-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.form-container label {
    display: block;
    margin-top: 10px;
    font-weight: 500;
}

.form-container input,
.form-container select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* 🔷 FORM WRAPPER */
.form-wrapper {
    max-width: 900px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* FORM */
.asset-form {
    width: 100%;
}

/* ROW */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* GROUP */
.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* LABEL */
.form-group label {
    margin-bottom: 6px;
    font-weight: 600;
    color: #2c3e50;
}

/* INPUT + SELECT */
.form-group input,
.form-group select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52,152,219,0.3);
}

/* RADIO GROUP */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-group label {
    font-weight: normal;
}

/* BUTTON */
.submit-btn {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    background: #3498db;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background: #2c80b4;
}


.recent-container {
    margin-top: 40px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

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

.asset-table th, .asset-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.asset-table th {
    background-color: #3498db;
    color: white;
}
.delete-btn {
    background-color: #e74c3c;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
}

.delete-btn:hover {
    background-color: #c0392b;
}

.delete-btn i {
    font-size: 14px;
}

.btn {
    display: inline-block;
    width: auto;
    margin-right: 10px;
}/* 🔷 FIX EDIT PAGE ALIGNMENT */
.topbar h2 {
    margin: 0;
}

.form-wrapper {
    margin-top: 20px;
}

/* Better spacing for edit form */
.asset-form {
    margin-top: 10px;
}


-------------------
.recent-container {
    padding-left: 5px;   /* 👈 tighter alignment */
}.recent-container {
    margin-left: -30px;   /* 👈 move slightly left */
}


.table-container {
    width: 100%;
    height: 50vh;   /* ✅ half of screen height */
    overflow: auto; /* ✅ both vertical + horizontal scroll */
    border: 1px solid #ccc;
    background: white;
}

.table-container {
    width: 100%;
    height: 50vh;        /* half page height */
    overflow-y: scroll;  /* ✅ vertical scrollbar (right side) */
    overflow-x: auto;    /* horizontal scroll */
    border: 1px solid #ccc;
    background: white;
}

body {
    font-family: Arial;
    margin: 0;              /* ❗ remove 20px */
    background: #f4f6f9;
}
#toast {
    opacity: 0;
    transition: opacity 0.5s ease;
}

#toast.show {
    display: block;
    opacity: 1;
}
.card.darkblue {
    background: #2c3e50;
    color: white;
}

.card.red {
    background: #e74c3c;
    color: white;
}

.card.green {
    background: #27ae60;
    color: white;
}

.card.navy {
    background: #34495e;
    color: white;
}

.card.brown {
    background: #8e5c42;
    color: white;
}

.card {
    opacity: 1 !important;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.login-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #050b16;
    min-height: 100vh;
    color: white;
}

.login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Left side */
.brand-panel {
    flex: 1;
    background: linear-gradient(135deg, #020817 0%, #071427 50%, #0b1f3a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.brand-panel::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(0, 153, 255, 0.12);
    border-radius: 50%;
    filter: blur(80px);
    top: 10%;
    left: 20%;
}

.brand-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 520px;
}

.brand-logo {
    width: 320px;
    max-width: 100%;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 20px rgba(0, 153, 255, 0.45));
}

.brand-overlay h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 4px;
    color: #ffffff;
    margin-bottom: 8px;
}

.brand-subtitle {
    font-size: 20px;
    letter-spacing: 6px;
    color: #66c2ff;
    margin-bottom: 20px;
}

.brand-text {
    font-size: 16px;
    color: #c9d8ea;
    line-height: 1.6;
}

/* Right side */
.login-panel {
    flex: 0.9;
    background: #0a1220;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(102, 194, 255, 0.18);
    border-radius: 22px;
    padding: 40px 32px;
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.login-card h2 {
    font-size: 32px;
    margin-bottom: 8px;
    color: #ffffff;
    text-align: center;
}

.login-subtext {
    text-align: center;
    color: #9eb4cc;
    font-size: 15px;
    margin-bottom: 30px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 8px;
    font-size: 14px;
    color: #b8cbe0;
    font-weight: 600;
}

.input-group input,
.input-group select {
    padding: 14px 15px;
    border-radius: 12px;
    border: 1px solid #1e3857;
    background: #0f1c2f;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.input-group input::placeholder {
    color: #7f96af;
}

.login-btn {
    margin-top: 10px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #0ea5e9, #2563eb);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
}

.error-message {
    margin-top: 18px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(220, 53, 69, 0.15);
    color: #ff6b81;
    text-align: center;
    font-size: 14px;
    border: 1px solid rgba(255, 107, 129, 0.25);
}

/* Responsive */
@media (max-width: 900px) {
    .login-wrapper {
        flex-direction: column;
    }

    .brand-panel {
        min-height: 42vh;
        padding: 30px 20px;
    }

    .brand-overlay h1 {
        font-size: 34px;
    }

    .brand-subtitle {
        font-size: 16px;
        letter-spacing: 4px;
    }

    .brand-logo {
        width: 220px;
    }

    .login-panel {
        padding: 30px 16px;
    }
}


/* ADMIN PAGE */
.admin-page {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #020817, #071120, #0b1730);
    color: #fff;
    min-height: 100vh;
}

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

/* SIDEBAR */
.admin-sidebar {
    width: 260px;
    background: rgba(8, 15, 28, 0.95);
    border-right: 1px solid rgba(85, 170, 255, 0.15);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 6px 0 20px rgba(0, 0, 0, 0.25);
}

.sidebar-top {
    text-align: center;
}

.logo-box {
    width: 110px;
    height: 110px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(26, 148, 255, 0.15), transparent 70%);
    border-radius: 20px;
}

.logo-box img {
    width: 72px;
    max-width: 100%;
    filter: drop-shadow(0 0 10px rgba(0, 162, 255, 0.45));
}

.sidebar-top h2 {
    margin: 0;
    font-size: 28px;
    letter-spacing: 2px;
    color: #ffffff;
}

.sidebar-top p {
    margin-top: 6px;
    color: #7db7ff;
    font-size: 14px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.side-link {
    text-decoration: none;
    color: #d5e7ff;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    transition: 0.3s ease;
    font-weight: 500;
}

.side-link:hover,
.side-link.active {
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.22), rgba(37, 99, 235, 0.18));
    color: #ffffff;
    transform: translateX(4px);
}

.logout-link:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #ffb3bd;
}

/* MAIN */
.admin-main {
    flex: 1;
    padding: 30px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding: 22px 26px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(84, 167, 255, 0.12);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22);
}

.admin-topbar h1 {
    margin: 0;
    font-size: 32px;
    color: #ffffff;
}

.admin-topbar p {
    margin: 6px 0 0;
    color: #9db6d4;
    font-size: 15px;
}

.admin-user-badge {
    padding: 12px 18px;
    background: linear-gradient(90deg, #0ea5e9, #2563eb);
    border-radius: 999px;
    font-weight: 700;
    color: white;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

/* STATS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card {
    padding: 24px;
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-card h4 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #dceaff;
    font-weight: 600;
}

.stat-card p {
    margin: 0;
    font-size: 34px;
    font-weight: 800;
}

.stat-blue {
    background: linear-gradient(135deg, #0f4c81, #0ea5e9);
}

.stat-cyan {
    background: linear-gradient(135deg, #155e75, #06b6d4);
}

.stat-dark {
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

/* GRID */
.admin-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 22px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(84, 167, 255, 0.12);
    border-radius: 22px;
    padding: 24px;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.card-title h3,
.table-top h3 {
    margin: 0;
    font-size: 22px;
    color: #fff;
}

.card-title span,
.table-top span {
    display: inline-block;
    margin-top: 5px;
    color: #91aac7;
    font-size: 14px;
}

/* FORM */
.user-form {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-size: 14px;
    color: #bdd7f7;
    font-weight: 600;
}

.form-group input,
.form-group select {
    padding: 14px 15px;
    border-radius: 12px;
    border: 1px solid #1d3557;
    background: #0c1628;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.primary-btn {
    border: none;
    border-radius: 12px;
    padding: 14px;
    background: linear-gradient(90deg, #0ea5e9, #2563eb);
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

/* TABLE */
.table-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

.search-box {
    width: 240px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #1d3557;
    background: #0c1628;
    color: #fff;
    outline: none;
}

.search-box:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.table-scroll {
    overflow-x: auto;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 14px;
}

.styled-table thead {
    background: linear-gradient(90deg, #0ea5e9, #2563eb);
}

.styled-table th {
    padding: 15px;
    text-align: left;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
}

.styled-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: #dbeafe;
    font-size: 14px;
}

.styled-table tbody tr {
    transition: 0.3s ease;
}

.styled-table tbody tr:hover {
    background: rgba(14, 165, 233, 0.08);
}

/* BADGES */
.role-badge {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-transform: capitalize;
}

.role-badge.admin {
    background: rgba(59, 130, 246, 0.18);
    color: #7dd3fc;
    border: 1px solid rgba(125, 211, 252, 0.25);
}

.role-badge.user {
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
    border: 1px solid rgba(110, 231, 183, 0.24);
}

/* DELETE BUTTON */
.delete-btn {
    display: inline-block;
    text-decoration: none;
    padding: 9px 14px;
    border-radius: 10px;
    background: rgba(220, 53, 69, 0.14);
    color: #ff8fa0;
    font-weight: 600;
    border: 1px solid rgba(255, 143, 160, 0.18);
    transition: 0.3s ease;
}

.delete-btn:hover {
    background: rgba(220, 53, 69, 0.24);
    color: #fff;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 850px) {
    .admin-wrapper {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        padding: 20px;
    }

    .admin-main {
        padding: 20px;
    }

    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .table-top {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        width: 100%;
    }
}

.brand-logo {
    margin-bottom: 25px;
}

.brand-panel h1 {
    margin-top: -100px;
    margin-bottom: 20px;
}

.login-type-buttons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.role-btn {
    flex: 1;
    text-align: center;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #2c3e63;
    background: #0f1c33;
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

input[type="radio"]:checked + .role-btn {
    background: linear-gradient(90deg, #1da1f2, #2563eb);
    border-color: #2563eb;
    color: #ffffff;
}

.forgot-password-wrap {
    text-align: right;
    margin: 8px 0 16px;
}

.forgot-password-link {
    color: #4ea1ff;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.divider {
    text-align: center;
    margin: 18px 0;
    color: #8ea3c3;
    font-size: 14px;
    position: relative;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #2c3e63;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: transparent;
    padding: 0 10px;
}

.add-user-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #2c7be5;
    background: transparent;
    color: #4ea1ff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.add-user-btn:hover {
    background: rgba(78, 161, 255, 0.08);
}