* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;

    --dark: #111827;
    --text: #334155;
    --gray: #64748b;

    --white: #ffffff;
    --border: #e2e8f0;
    --background: #f8fafc;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
}

a {
    text-decoration: none;
}


/* ==============================
   HEADER
============================== */

.header {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    padding: 15px 5%;

    background: white;

    border-bottom: 1px solid #edf2f7;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;

    flex-shrink: 0;

    color: var(--dark);
}
.logo img {
    display: flex;
    align-items: center;
    height: 45px;
    width: 35px;
    gap: 12px;
    left: 10px;
    min-width: 50px;
    object-fit: contain;
    max-width: 100%;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: #111827;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
}

.logo-text h2 {
    font-size: 23px;
    letter-spacing: 1px;
}

.logo-text p {
    margin-top: 4px;

    color: var(--gray);

    font-size: 10px;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 20px;
}

.menu a {
    color: #475569;

    font-size: 12px;
    font-weight: 600;

    transition: 0.2s;
}

.menu a:hover,
.menu a.active {
    color: var(--primary);
}

.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 15px;

    border-radius: 9px;

    background: var(--primary);

    color: white;

    font-size: 12px;
    font-weight: bold;

    white-space: nowrap;
}

.login-btn:hover {
    background: var(--primary-dark);
}


/* ==============================
   KHUNG NỘI DUNG
============================== */

.page-container {
    max-width: 1250px;

    margin: 0 auto;

    padding: 30px 25px 60px;
}


/* ==============================
   BREADCRUMB
============================== */

.breadcrumb {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 27px;

    color: var(--gray);

    font-size: 12px;
}

.breadcrumb a {
    color: var(--primary);
}


/* ==============================
   TIÊU ĐỀ
============================== */

.page-heading {
    display: flex;
    align-items: center;

    gap: 15px;

    margin-bottom: 28px;
}

.heading-icon {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 15px;

    background: #dbeafe;

    font-size: 27px;
}

.page-heading h1 {
    margin-bottom: 8px;

    color: var(--dark);

    font-size: 28px;
}

.page-heading p {
    color: var(--gray);

    font-size: 13px;

    line-height: 1.7;
}


/* ==============================
   THỐNG KÊ
============================== */

.summary-list {

    display: flex;
    flex-wrap: wrap;
    gap: 20px;

    margin-bottom: 27px;
}

.summary-card {
    width: calc((100% - 36px) / 5);
    box-sizing: border-box;

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 23px;

    border: 1px solid #edf2f7;

    border-radius: 15px;

    background: white;

    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.025);
}

.summary-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 13px;

    font-size: 23px;
}

.summary-icon.blue {
    background: #dbeafe;
}

.summary-icon.purple {
    background: #ede9fe;
}

.summary-icon.green {
    background: #dcfce7;
}

.summary-card p {
    margin-bottom: 9px;

    color: var(--gray);

    font-size: 12px;
}

.summary-card h2 {
    color: var(--dark);

    font-size: 22px;

    overflow-wrap: anywhere;
}


/* ==============================
   KHUNG LỊCH SỬ
============================== */

.history-panel {
    overflow: hidden;

    border: 1px solid #edf2f7;

    border-radius: 16px;

    background: white;

    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.025);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 25px;

    border-bottom: 1px solid #edf2f7;
}

.panel-header h2 {
    margin-bottom: 8px;

    color: var(--dark);

    font-size: 19px;
}

.panel-header p {
    color: var(--gray);

    font-size: 12px;
}

.deposit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 17px;

    border-radius: 9px;

    background: var(--primary);

    color: white;

    font-size: 12px;
    font-weight: bold;

    white-space: nowrap;

    transition: 0.2s;
}

.deposit-button:hover {
    background: var(--primary-dark);
}


/* ==============================
   BỘ LỌC
============================== */

.filter-area {
    display: flex;
    align-items: flex-end;

    gap: 15px;

    padding: 22px 25px;

    background: #fcfdff;

    border-bottom: 1px solid #edf2f7;
}

.filter-group {
    display: flex;
    flex-direction: column;

    gap: 8px;

    flex: 1;

    min-width: 140px;
}

.filter-group label {
    color: #475569;

    font-size: 11px;
    font-weight: bold;
}

.filter-group select,
.filter-group input {
    width: 100%;
    height: 42px;

    padding: 0 12px;

    border: 1px solid var(--border);

    border-radius: 8px;

    outline: none;

    background: white;

    color: var(--text);

    font-family: inherit;

    font-size: 12px;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--primary);

    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.reset-button {
    height: 42px;

    padding: 0 15px;

    border: 1px solid #bfdbfe;

    border-radius: 8px;

    background: #eff6ff;

    color: var(--primary);

    font-size: 12px;
    font-weight: bold;

    cursor: pointer;
}

.reset-button:hover {
    background: #dbeafe;
}


/* ==============================
   BẢNG GIAO DỊCH
============================== */

.table-wrapper {
    width: 100%;

    overflow-x: auto;
}

table {
    width: 100%;

    border-collapse: collapse;

    white-space: nowrap;
}

thead {
    background: #f8fafc;
}

th {
    padding: 16px 18px;

    color: #64748b;

    font-size: 11px;
    font-weight: bold;

    text-align: left;

    border-bottom: 1px solid var(--border);
}

td {
    padding: 18px;

    color: #475569;

    font-size: 12px;

    border-bottom: 1px solid #f1f5f9;
}

tbody tr:hover {
    background: #f8fbff;
}

tbody tr:last-child td {
    border-bottom: none;
}

.transaction-id {
    color: var(--primary);

    font-weight: bold;
}

.amount-cell {
    color: var(--dark);

    font-weight: bold;
}


/* ==============================
   NHÃN LOẠI GIAO DỊCH
============================== */

.type-badge {
    display: inline-block;

    padding: 7px 10px;

    border-radius: 20px;

    font-size: 10px;
    font-weight: bold;
}

.type-badge.deposit {
    background: #dbeafe;

    color: #1d4ed8;
}

.type-badge.rental {
    background: #ede9fe;

    color: #6d28d9;
}


/* ==============================
   NHÃN TRẠNG THÁI
============================== */

.status-badge {
    display: inline-block;

    padding: 7px 10px;

    border-radius: 20px;

    font-size: 10px;
    font-weight: bold;
}

.status-badge.success {
    background: #dcfce7;

    color: #15803d;
}

.status-badge.pending {
    background: #fef3c7;

    color: #92400e;
}

.status-badge.failed {
    background: #fee2e2;

    color: #b91c1c;
}


/* ==============================
   KHÔNG CÓ DỮ LIỆU
============================== */

.empty-message {
    padding: 50px 20px;

    text-align: center;
}

.empty-message[hidden] {
    display: none;
}

.empty-message > div {
    margin-bottom: 15px;

    font-size: 35px;
}

.empty-message h3 {
    margin-bottom: 10px;

    color: var(--dark);

    font-size: 17px;
}

.empty-message p {
    color: var(--gray);

    font-size: 12px;

    line-height: 1.7;
}


/* ==============================
   PHÂN TRANG
============================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 20px 25px;

    border-top: 1px solid #edf2f7;
}

.pagination > p {
    color: var(--gray);

    font-size: 11px;
}

.pagination-buttons {
    display: flex;
    align-items: center;

    gap: 12px;
}

.pagination-buttons button {
    min-height: 35px;

    padding: 0 12px;

    border: 1px solid var(--border);

    border-radius: 7px;

    background: white;

    color: var(--text);

    font-size: 11px;

    cursor: pointer;
}

.pagination-buttons button:hover:not(:disabled) {
    border-color: var(--primary);

    color: var(--primary);
}

.pagination-buttons button:disabled {
    opacity: 0.4;

    cursor: not-allowed;
}

.pagination-buttons span {
    color: var(--gray);

    font-size: 11px;

    white-space: nowrap;
}


/* ==============================
   LƯU Ý
============================== */

.notice {
    display: flex;
    align-items: flex-start;

    gap: 13px;

    margin-top: 25px;

    padding: 22px;

    border: 1px solid #bfdbfe;

    border-radius: 13px;

    background: #eff6ff;
}

.notice-icon {
    font-size: 23px;
}

.notice h3 {
    margin-bottom: 8px;

    color: #1e40af;

    font-size: 14px;
}

.notice p {
    color: #475569;

    font-size: 12px;

    line-height: 1.8;
}


/* ==============================
   NÚT CUỐI TRANG
============================== */

.bottom-actions {
    display: flex;
    justify-content: space-between;

    gap: 15px;

    margin-top: 25px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 43px;

    padding: 0 17px;

    border-radius: 9px;

    font-size: 12px;
    font-weight: bold;

    transition: 0.2s;
}

.primary-button {
    background: var(--primary);

    color: white;
}

.primary-button:hover {
    background: var(--primary-dark);
}

.secondary-button {
    border: 1px solid var(--border);

    background: white;

    color: var(--text);
}

.secondary-button:hover {
    border-color: var(--primary);

    color: var(--primary);
}


/* ==============================
   FOOTER
============================== */

.footer {
    padding: 35px 20px;

    text-align: center;

    background: white;

    border-top: 1px solid #edf2f7;
}

.footer-logo {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--dark);

    font-size: 21px;
    font-weight: bold;
}

.footer p {
    margin-top: 8px;

    color: var(--gray);

    font-size: 11px;

    line-height: 1.7;
}


/* ==============================
   TABLET
============================== */

@media (max-width: 1050px) {

    .header {
        flex-wrap: wrap;
    }

    .menu {
        order: 3;

        width: 100%;

        justify-content: flex-start;
    }

    .summary-grid {
        gap: 12px;
    }

    .summary-card {
        padding: 17px;
    }

    .summary-card h2 {
        font-size: 18px;
    }

    .filter-area {
        flex-wrap: wrap;
    }

    .filter-group {
        flex: 1 1 200px;
    }

}


/* ==============================
   ĐIỆN THOẠI
============================== */

@media (max-width: 600px) {

    .header {
        padding: 15px 20px;

        gap: 15px;
    }

    .menu {
        gap: 14px;
    }

    .menu a {
        font-size: 11px;
    }

    .page-container {
        padding: 22px 13px 40px;
    }

    .page-heading h1 {
        font-size: 22px;
    }

    .page-heading p {
        font-size: 12px;
    }

    .summary-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .summary-card {
        padding: 18px;
    }

    .panel-header {
        align-items: flex-start;

        padding: 20px 15px;
    }

    .panel-header h2 {
        font-size: 16px;
    }

    .deposit-button {
        padding: 10px;
    }

    .filter-area {
        padding: 18px 15px;
    }

    .filter-group {
        flex: 1 1 100%;
    }

    .reset-button {
        width: 100%;
    }

    th,
    td {
        padding: 14px;
    }

    .pagination {
        align-items: flex-start;

        flex-direction: column;

        padding: 18px 15px;
    }

    .pagination-buttons {
        width: 100%;

        justify-content: space-between;
    }

    .notice {
        padding: 17px;
    }

    .bottom-actions {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

}