/* Wrapper */
.login-wrapper {
    min-height: 100vh;
    display: flex;
}

/* Container */
.login-container {
    width: 100%;
    background: #E8DDC7;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Card */
.login-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    width: 450px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Title */
.login-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Error */
.error-box {
    background: #ffe5e5;
    color: #b30000;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* Form */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* Button */
.login-btn {
    width: 100%;
    background: #C0392B;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.login-btn:hover {
    background: #a93226;
}

/* Demo text */
.demo-text {
    margin-top: 15px;
    font-size: 12px;
    color: #777;
}

/* Layout */
.layout {
    display: flex;
    min-height: 100vh;
    background: #fff3de;
}

/* Sidebar FIXED */
.sidebar {
    position: fixed; /* 🔥 IMPORTANT */
    top: 0;
    left: 0;
    width: 230px;
    height: 100vh; /* full screen height */
    background: #c0392b;
    color: white;

    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* Top section */
.sidebar-top {
    flex: 1;
}

/* Bottom logout */
.sidebar-bottom {
    margin-top: auto;
}

/* Logout button */
.logout-btn {
    width: 100%;
    background: transparent;
    color: white;
    text-align: left;
    border: none;
    cursor: pointer;
}

.logo {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 30px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 10px;
    text-decoration: none;
    color: white;

    transition: all 0.2s ease;
}

/* Hover effect 🔥 */
.menu-item:hover {
    background: rgba(255,255,255,0.15);
}

/* Active */
.menu-item.active {
    background: white;
    color: #c0392b;
    font-weight: 500;
}

/* Icon alignment */
.menu-item i {
    width: 18px;
}

.menu-item.active {
    border-left: 4px solid #c0392b;
}

/* Main */
.main {
    flex: 1;
    margin-left: 230px;
    padding: 30px;
}

/* Title */
.page-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Cards */
.card-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.card {
    padding: 20px;
    border-radius: 15px;
    color: white;
    width: 160px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card.blue { background: #3b82f6; }
.card.green { background: #22c55e; }
.card.yellow { background: #facc15; }
.card.coral { background: lightcoral; }
.card.white { background: white; }
.card.red { color: #c0392b; }

/* OUTER BOX (gray) */
.outer-box {
    /* padding: 25px;
    border-radius: 25px; */
}

/* INNER BOX (white) */
.inner-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 20px;
}

/* Search */
.search {
    width: 100%;
    padding: 14px;
    border: 2px solid #c0392b;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Filters */
.filters {
    margin-top: 30px;
    margin-bottom: 30px;
}

.filter {
    padding: 8px 16px;
    border: 1px solid #c0392b;
    border-radius: 8px;
    background: white;
    margin-right: 10px;
    cursor: pointer;
    text-decoration: none;
    color: black;
}

.filter.active {
    background: #c0392b;
    color: white;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #fff3de;
    padding: 12px;
    text-align: center;
    font-size: 14px;
}

td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    text-align: center;
}

/* Row spacing */
tr:nth-child(even) {
    background: #fafafa;
}

/* Badge */
.badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
}

.badge.free {
    background: lightcoral;
}

.badge.standard {
    background: #facc15;
    color: white;
}
.badge.premium {
    background: #22c55e;
    color: white;
}

/* Footer */
.table-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-box input {
    flex: 1;
    padding: 12px;
    border: 1px solid #c0392b;
    border-radius: 10px;
}

.search-box button {
    background: #c0392b;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
}

.action-wrapper {
    position: relative;
}

.action-wrapper button {
    background: #eee;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.action-menu {
    position: absolute;
    right: 0;
    top: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: none;
    min-width: 120px;
    z-index: 10;
}

.action-menu button {
    width: 100%;
    padding: 10px;
    text-align: left;
    background: none;
}

.action-menu button:hover {
    background: #f5f5f5;
}

/* ------------------------ */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    width: 300px;
}

.modal-actions {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.pagination-wrapper {
    display: flex;
    justify-content: flex-end;
}

.pagination-wrapper nav {
    display: flex;
    gap: 5px;
}

.pagination-wrapper {
    display: flex;
    justify-content: flex-end;
}

/* All buttons */
.pagination-wrapper nav a,
.pagination-wrapper nav span {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 14px;
    background: transparent;
    color: #555;
    text-decoration: none;
}

/* Hover */
.pagination-wrapper nav a:hover {
    background: #e0e0e0;
}

/* Active (BLUE like screenshot) */
.pagination-wrapper nav span[aria-current="page"] {
    background: #e0e0e0;
    color: white;
    font-weight: 500;
}

/* Disabled */
.pagination-wrapper nav span[aria-disabled="true"] {
    color: #bbb;
    cursor: not-allowed;
}
.pagination-wrapper nav p {
    display: none !important;
}

.menu-item i {
    margin-right: 10px;
    width: 18px;
}

.card-top {
    margin-bottom: 10px;
}

.card-top i {
    font-size: 20px;
    opacity: 0.9;
}

.bg-btn-clr {
    background-color: #2E7D32;
}

.bg-new-reg-btn {
    background-color: #E65100;
}

.custom-select-arrow {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    padding-right: 1rem;
}

.mt {
    margin-top: 2rem;
}

.detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.detail-btn:hover {
    color: #1d4ed8;
}

.ta-center {
    text-align: center;
}