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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;

    position: relative;
    isolation: isolate;

    background: #111827;

    color: #333;

    overflow-x: hidden;
}

body::before {
    content: "";

    position: fixed;
    inset: -25px;

    background-image:
        linear-gradient(
            rgba(5, 15, 25, 0.45),
            rgba(5, 15, 25, 0.45)
        ),
        url("images/tots-motorshop.jpg");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    filter: blur(10px);

    transform: scale(1.05);

    z-index: -2;

    pointer-events: none;
}

body::after {
    content: "";

    position: fixed;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(5, 15, 25, 0.12),
            rgba(5, 15, 25, 0.12)
        ),
        url("images/tots-motorshop.jpg");

    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;

    z-index: -1;

    pointer-events: none;
}


.overlay {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 40px 20px;

    background: rgba(0, 0, 0, 0.05);
}

.landing-container {
    width: 720px;
    max-width: 100%;

    padding: 50px 55px;

    text-align: center;

    background: rgba(255, 255, 255, 0.96);

    border-radius: 20px;

    border: 1px solid rgba(255, 255, 255, 0.8);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35);

    backdrop-filter: blur(8px);
}

.main-logo {
    width: 150px;
    height: 150px;

    object-fit: contain;

    display: block;

    margin: 0 auto 20px;

    filter: drop-shadow(
        0 5px 8px rgba(0, 0, 0, 0.2)
    );
}

.landing-container h1 {
    color: #1e3a8a;

    font-size: 46px;
    font-weight: 700;

    margin-bottom: 12px;
}

.tagline {
    font-size: 19px;
    font-weight: 600;

    color: #374151;

    margin-bottom: 18px;
}

.landing-container p:not(.tagline) {
    max-width: 560px;

    margin: 0 auto;

    color: #6b7280;

    font-size: 16px;

    line-height: 1.7;
}

.start-btn {
    display: inline-block;

    margin-top: 30px;

    padding: 14px 38px;

    background: #2563eb;
    color: white;

    border: none;
    border-radius: 10px;

    font-size: 17px;
    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 6px 15px rgba(37, 99, 235, 0.3);

    transition:
        background 0.3s,
        transform 0.3s,
        box-shadow 0.3s;
}

.start-btn:hover {
    background: #1d4ed8;

    transform: translateY(-2px);

    box-shadow:
        0 10px 20px rgba(37, 99, 235, 0.4);
}

.start-btn:active {
    transform: translateY(0);
}

.login-container {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 30px 20px;
}

.login-box {
    width: 450px;
    max-width: 95%;

    background: rgba(255, 255, 255, 0.97);

    padding: 45px 40px;

    border-radius: 20px;

    border: 1px solid rgba(255, 255, 255, 0.8);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35);

    backdrop-filter: blur(8px);
}

.login-logo {
    width: 110px;
    height: 110px;

    object-fit: contain;

    display: block;

    margin: 0 auto 20px;

    filter: drop-shadow(
        0 5px 8px rgba(0, 0, 0, 0.2)
    );
}

.login-box h2 {
    text-align: center;

    color: #1e3a8a;

    font-size: 28px;
    font-weight: 700;

    margin-bottom: 10px;
}

.subtitle {
    text-align: center;

    color: #6b7280;

    font-size: 15px;

    line-height: 1.5;

    margin-bottom: 22px;
}

.login-box input {
    width: 100%;

    padding: 14px 16px;

    margin-top: 15px;

    border: 1px solid #d1d5db;

    border-radius: 10px;

    background: #f9fafb;

    color: #111827;

    font-size: 16px;

    outline: none;

    transition: 0.3s;
}

.login-box input:focus {
    border-color: #2563eb;

    background: white;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.15);
}

.login-box button {
    width: 100%;

    margin-top: 20px;

    padding: 14px;

    font-size: 16px;
    font-weight: 600;

    border-radius: 10px;

    box-shadow:
        0 5px 12px rgba(37, 99, 235, 0.25);
}

.register-link {
    display: block;

    margin-top: 18px;

    text-align: center;

    text-decoration: none;

    color: #2563eb;

    font-size: 15px;
    font-weight: 600;

    transition: 0.3s;
}

.register-link:hover {
    color: #1d4ed8;

    text-decoration: underline;
}

.sidebar {
    position: fixed;

    left: 0;
    top: 0;

    width: 250px;
    height: 100vh;

    background: #1e3a8a;

    color: white;

    overflow-y: auto;

    transition: transform 0.3s ease;

    z-index: 1000;
}

.sidebar-header {
    text-align: center;

    padding: 20px;
}

.sidebar-logo {
    width: 120px;
    height: 120px;

    object-fit: contain;

    display: block;

    margin: auto;
}

.sidebar h2 {
    margin-top: 10px;

    font-size: 22px;

    color: white;
}

.sidebar ul {
    list-style: none;

    padding: 0;
    margin: 0;
}

.sidebar li {
    padding: 0;

    margin: 4px 10px;

    border-radius: 8px;

    overflow: hidden;
}

.sidebar li:hover {
    background: #2563eb;
}

.sidebar a {
    color: white;

    text-decoration: none;

    display: block;

    padding: 15px 20px;

    font-size: 16px;

    transition: 0.3s;
}

.sidebar a:hover {
    padding-left: 24px;
}

.sidebar.hide {
    transform: translateX(-220px);
}

.sidebar.hide::after {
    content: "";

    position: absolute;

    right: -30px;
    top: 0;

    width: 30px;
    height: 100%;

    cursor: pointer;
}

.content {
    margin-left: 35px;

    padding: 35px;

    width: calc(100% - 30px);

    color: #ffffff;

    transition:
        margin-left 0.3s ease,
        width 0.3s ease;
}

.content.expand {
    margin-left: 250px;

    width: calc(100% - 250px);
}

.content > h1 {
    color: #ffffff;

    font-size: 38px;
    font-weight: 700;

    margin-bottom: 25px;
}

button {
    background: #2563eb;

    color: white;

    border: none;

    padding: 10px 18px;

    border-radius: 8px;

    cursor: pointer;

    font-size: 15px;
    font-weight: 600;

    transition:
        background 0.3s,
        transform 0.2s;
}

button:hover {
    background: #1d4ed8;

    transform: translateY(-1px);
}


#saveBtn {
    background: #16a34a;
}

#saveBtn:hover {
    background: #15803d;
}


#updateBtn {
    background: #f59e0b;
}

#updateBtn:hover {
    background: #d97706;
}


#cancelBtn {
    background: #6b7280;
}

#cancelBtn:hover {
    background: #4b5563;
}


.editBtn {
    background: #f59e0b;

    color: white;
}

.editBtn:hover {
    background: #d97706;
}


.deleteBtn {
    background: #dc2626;

    color: white;
}

.deleteBtn:hover {
    background: #b91c1c;
}

.cards {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(180px, 1fr));

    gap: 22px;

    margin-top: 20px;
}

.card {
    position: relative;

    min-height: 125px;

    padding: 25px 20px;

    background: rgba(255, 255, 255, 0.98);

    border-radius: 14px;

    border: 1px solid #e5e7eb;

    border-top: 4px solid #2563eb;

    text-align: center;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.16);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.22);
}

.card h3 {
    color: #374151;

    font-size: 16px;

    font-weight: 700;

    margin-bottom: 14px;

    line-height: 1.4;
}

.card p {
    color: #2563eb;

    font-size: 34px;

    font-weight: 800;

    margin: 0;

    line-height: 1.2;
}

.card:nth-child(2) {
    border-top-color: #f59e0b;
}

.card:nth-child(2) p {
    color: #d97706;
}

.card:nth-child(3) {
    border-top-color: #16a34a;
}

.card:nth-child(3) p {
    color: #16a34a;
}

.card:nth-child(4) {
    border-top-color: #7c3aed;
}

.card:nth-child(4) p {
    color: #7c3aed;
}

input,
select {
    width: 100%;

    padding: 12px;

    margin-top: 10px;

    margin-bottom: 15px;

    border-radius: 8px;

    border: 1px solid #ccc;

    background: white;

    color: #111827;

    font-size: 16px;

    box-sizing: border-box;
}

input:focus,
select:focus {
    outline: none;

    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.15);
}

table {
    width: 100%;

    border-collapse: separate;

    border-spacing: 0;

    background: white;

    color: #111827;

    border-radius: 15px;

    overflow: hidden;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.18);

    font-size: 16px;
}

th {
    background: #1e3a8a;

    color: white;

    padding: 18px;

    font-size: 15px;

    font-weight: 700;

    letter-spacing: 0.5px;

    text-transform: uppercase;

    text-align: center;

    position: sticky;

    top: 0;

    z-index: 10;
}

td {
    padding: 16px;

    text-align: center;

    color: #111827;

    background: white;

    border-bottom: 1px solid #e5e7eb;

    font-size: 15px;
}

tbody tr:nth-child(even) td {
    background: #f5f7fa;
}

tbody tr:hover td {
    background: #dbeafe;

    color: #111827;

    transition: 0.3s;
}

.product-form {
    background: white;

    padding: 25px;

    border-radius: 15px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.2);

    width: 550px;

    max-width: 100%;

    margin-bottom: 25px;
}

.product-form h2 {
    color: #1e3a8a;

    margin-bottom: 20px;

    text-align: center;

    font-size: 25px;
}

.search-container {
    margin: 20px 0;
}

#searchProduct {
    width: 350px;
    max-width: 100%;

    padding: 14px 18px;

    border: 2px solid #2563eb;

    border-radius: 12px;

    font-size: 16px;

    outline: none;

    transition: 0.3s;
}

#searchProduct:focus {
    border-color: #1d4ed8;

    box-shadow:
        0 0 10px rgba(37, 99, 235, 0.35);
}

.product-image-cell {
    text-align: center;

    vertical-align: middle;
}

.product-image {
    width: 55px;
    height: 55px;

    object-fit: contain;

    display: block;

    margin: auto;

    border-radius: 8px;

    background: white;

    padding: 4px;

    border: 1px solid #ddd;

    transition: 0.3s;
}

.product-image:hover {
    transform: scale(1.08);
}

.stock-status {
    display: inline-block;

    padding: 6px 11px;

    border-radius: 15px;

    font-size: 13px;

    font-weight: 700;

    white-space: nowrap;
}

.in-stock {
    background: #d1fae5;

    color: #047857;
}

.limited-stock {
    background: #fef3c7;

    color: #b45309;
}

.low-stock {
    background: #fee2e2;

    color: #dc2626;
}

.stock-good,
.stock-limited,
.stock-low,
.stock-out {
    display: inline-block;

    padding: 6px 10px;

    border-radius: 20px;

    font-size: 13px;

    font-weight: 700;

    white-space: nowrap;
}

.stock-good {
    color: #166534;

    background: #dcfce7;
}

.stock-limited {
    color: #92400e;

    background: #fef3c7;
}

.stock-low {
    color: #991b1b;

    background: #fee2e2;
}

.stock-out {
    color: #374151;

    background: #e5e7eb;
}

.low-stock-box {
    background: rgba(255, 255, 255, 0.97);

    padding: 24px;

    border-radius: 15px;

    margin-top: 25px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.18);

    border-left: 5px solid #f59e0b;
}

.section-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 18px;
}

.section-header h2 {
    color: #1e3a8a;

    font-size: 22px;

    margin: 0;
}

.alert-count {
    background: #fff7ed;

    color: #ea580c;

    padding: 7px 12px;

    border-radius: 20px;

    font-size: 13px;

    font-weight: bold;
}

.low-stock-list {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.stock-alert-item {
    display: flex;

    align-items: center;

    gap: 14px;

    padding: 12px 15px;

    border-radius: 10px;

    background: #f8fafc;

    border: 1px solid #e5e7eb;

    transition: 0.25s;
}

.stock-alert-item:hover {
    transform: translateX(4px);

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08);
}

.stock-alert-icon {
    width: 32px;
    height: 32px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: white;

    font-weight: bold;

    flex-shrink: 0;
}

.stock-alert-info {
    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 3px;
}

.stock-alert-info strong {
    color: #1f2937;

    font-size: 15px;
}

.stock-alert-info small {
    color: #6b7280;

    font-size: 13px;
}

.stock-quantity {
    min-width: 65px;

    text-align: center;

    display: flex;

    flex-direction: column;
}

.stock-quantity strong {
    font-size: 19px;
}

.stock-quantity small {
    color: #6b7280;

    font-size: 12px;
}

.stock-alert-item.warning {
    border-left: 4px solid #f59e0b;
}

.stock-alert-item.warning .stock-alert-icon {
    background: #f59e0b;
}

.stock-alert-item.warning .stock-quantity strong {
    color: #d97706;
}

.stock-alert-item.critical {
    border-left: 4px solid #dc2626;

    background: #fff7f7;
}

.stock-alert-item.critical .stock-alert-icon {
    background: #dc2626;
}

.stock-alert-item.critical .stock-quantity strong {
    color: #dc2626;
}


.no-alerts {
    display: flex;

    align-items: center;

    gap: 14px;

    padding: 18px;

    background: #f0fdf4;

    border: 1px solid #bbf7d0;

    border-radius: 10px;

    color: #166534;
}

.no-alerts span {
    width: 32px;
    height: 32px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #16a34a;

    color: white;

    font-weight: bold;
}

.no-alerts strong {
    display: block;

    font-size: 15px;
}

.no-alerts small {
    display: block;

    margin-top: 3px;

    color: #4d7c5a;

    font-size: 13px;
}

.welcome-box {
    background: rgba(255, 255, 255, 0.96);

    border-radius: 16px;

    padding: 28px 32px;

    margin-top: 10px;
    margin-bottom: 25px;

    border: 1px solid rgba(255, 255, 255, 0.8);

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.18);

    position: relative;

    overflow: hidden;
}

.welcome-box::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 6px;
    height: 100%;

    background: #2563eb;
}

.welcome-content {
    padding-left: 8px;
}

.welcome-badge {
    display: inline-block;

    padding: 6px 12px;

    margin-bottom: 10px;

    background: #dbeafe;

    color: #1e3a8a;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.6px;
}

.welcome-box h2 {
    color: #1e3a8a;

    font-size: 28px;

    font-weight: 700;

    margin-bottom: 6px;
}

.welcome-subtitle {
    color: #4b5563;

    font-size: 16px;

    font-weight: 600;

    margin-bottom: 14px;
}

.welcome-description {
    color: #6b7280;

    font-size: 15px;

    line-height: 1.7;

    max-width: 1000px;

    margin-bottom: 18px;
}

.welcome-divider {
    width: 100%;

    height: 1px;

    background: #e5e7eb;

    margin: 15px 0;
}

.welcome-quote {
    color: #2563eb;

    font-size: 15px;

    font-weight: 600;

    font-style: italic;

    margin: 0;
}

.report-box {
    background: #ffffff;

    color: #111827;

    padding: 25px;

    border-radius: 15px;

    margin-top: 20px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.20);
}

.report-box h2 {
    color: #1e3a8a;

    font-size: 24px;

    font-weight: 700;

    margin-bottom: 18px;
}

.report-box p {
    color: #374151;

    font-size: 17px;

    line-height: 1.7;
}

.report-box h3 {
    color: #2563eb;

    font-size: 19px;

    font-weight: 700;

    margin-top: 20px;
    margin-bottom: 12px;

    text-align: left;

    font-style: normal;
}

.report-box label {
    display: block;

    color: #111827;

    font-size: 15px;

    font-weight: 700;

    margin-top: 12px;

    margin-bottom: 6px;
}

.report-box select,
.report-box input {
    width: 100%;

    background: #ffffff;

    color: #111827;

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    padding: 12px 14px;

    font-size: 16px;

    outline: none;

    transition: 0.3s;
}

.report-box input::placeholder {
    color: #6b7280;
}

.report-box select:focus,
.report-box input:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.15);
}

.report-box select option {
    background: #ffffff;

    color: #111827;
}

.report-box button {
    margin-top: 15px;

    background: #2563eb;

    color: #ffffff;

    padding: 12px 20px;

    border: none;

    border-radius: 8px;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s;
}

.report-box button:hover {
    background: #1d4ed8;

    transform: translateY(-2px);
}

.content .report-box table {
    width: 100%;

    border-collapse: separate;

    border-spacing: 0;

    background: #ffffff;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.10);

    margin-top: 15px;
}

.content .report-box table thead th {
    background: #1e3a8a;

    color: #ffffff;

    padding: 14px 16px;

    font-size: 15px;

    font-weight: 700;

    text-align: center;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    border: none;
}

.content .report-box table tbody td {
    background: #ffffff;

    color: #1f2937;

    padding: 14px 16px;

    font-size: 15px;

    font-weight: 500;

    text-align: center;

    border-bottom: 1px solid #e5e7eb;
}

.content .report-box table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.content .report-box table tbody tr {
    transition: 0.2s ease;
}

.content .report-box table tbody tr:hover td {
    background: #eff6ff;
}

.content .report-box table tbody tr:last-child td {
    border-bottom: none;
}

.content .report-box table tbody td:first-child {
    font-weight: 600;

    color: #1e3a8a;
}

.content .report-box table tbody td:nth-child(2) {
    font-weight: 600;

    color: #374151;
}

.content .report-box table tbody td:nth-child(3) {
    font-weight: 700;

    color: #16a34a;
}

.content .report-box table tbody td:nth-child(4) {
    color: #6b7280;

    font-size: 14px;
}

.analytics-box {
    background: white;

    color: #374151;

    padding: 20px;

    border-radius: 10px;

    margin-top: 20px;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.15);
}

.analytics-cards .card {
    border-top: 4px solid #2563eb;
}

.analytics-cards .card h3 {
    font-size: 18px;

    font-weight: 600;
}

.analytics-cards .card p {
    font-size: 34px;

    margin-top: 8px;
}

.sales-page .content {
    color: white;
}

.sales-page .content h1 {
    color: white;
}

.sales-page label {
    color: white;

    font-weight: 600;

    font-size: 16px;
}

.sales-page .content p {
    color: #e5e7eb;

    font-size: 15px;
}

.sales-page select,
.sales-page input {
    background: white;

    color: #111827;

    font-size: 16px;
}

.sales-page table {
    background: white;

    color: #111827;
}

.sales-page table th {
    background: #1e3a8a;

    color: white;

    font-size: 15px;

    font-weight: 700;
}

.sales-page table td {
    background: white;

    color: #111827;

    font-size: 15px;

    font-weight: 500;
}

.sales-page table tbody tr:nth-child(even) td {
    background: #f3f4f6;
}

.sales-page table tbody tr:hover td {
    background: #dbeafe;

    color: #111827;
}

.sales-page button {
    color: white;

    font-weight: 600;
}

@media (max-width: 1000px) {

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {

    .landing-container {
        width: 95%;

        padding: 40px 25px;
    }

    .main-logo {
        width: 120px;
        height: 120px;
    }

    .landing-container h1 {
        font-size: 36px;
    }

    .tagline {
        font-size: 17px;
    }

    .landing-container p:not(.tagline) {
        font-size: 15px;
    }

    .start-btn {
        padding: 13px 30px;

        font-size: 16px;
    }

    .login-box {
        width: 95%;

        padding: 35px 25px;
    }

    .login-logo {
        width: 90px;
        height: 90px;
    }

    .login-box h2 {
        font-size: 24px;
    }

    .login-box input {
        padding: 13px 14px;

        font-size: 15px;
    }

    .login-box button {
        padding: 13px;

        font-size: 15px;
    }

    .sidebar {
        width: 220px;
    }

    .content {
        margin-left: 25px;

        padding: 25px 20px;

        width: calc(100% - 25px);
    }

    .content.expand {
        margin-left: 220px;

        width: calc(100% - 220px);
    }

    .content > h1 {
        font-size: 30px;
    }

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

    .card {
        width: 100%;

        min-width: 0;
    }

    .product-form {
        width: 100%;
    }


    table {
        display: block;

        overflow-x: auto;

        white-space: nowrap;
    }


    .report-box {
        padding: 18px;
    }

    .report-box h2 {
        font-size: 21px;
    }

    .report-box select,
    .report-box input {
        font-size: 15px;

        padding: 11px;
    }

    .content .report-box {
        overflow-x: auto;
    }

    .content .report-box table {
        min-width: 650px;
    }

    .welcome-box {
        padding: 22px 20px;
    }

    .welcome-box h2 {
        font-size: 23px;
    }

    .welcome-description {
        font-size: 14px;
    }

    .welcome-quote {
        font-size: 14px;
    }

}

@media (max-width: 600px) {

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

    .card {
        padding: 20px;
    }

    .content > h1 {
        font-size: 27px;
    }

    .sidebar {
        width: 210px;
    }

}

.terms-container {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.55);

    z-index: 9999;
}

.terms-box {
    width: 650px;
    max-width: 95%;

    max-height: 85vh;

    background: rgba(255, 255, 255, 0.98);

    padding: 25px 30px;

    border-radius: 15px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.35);

    border: 1px solid rgba(255, 255, 255, 0.8);

    overflow: hidden;
}

.terms-logo {
    width: 55px;
    height: 55px;

    object-fit: contain;

    display: block;

    margin: 0 auto 8px;
}

.terms-box h1 {
    text-align: center;

    color: #1e3a8a;

    font-size: 25px;

    margin-bottom: 8px;
}

.terms-intro {
    text-align: center;

    color: #6b7280;

    font-size: 13px;

    line-height: 1.5;

    margin-bottom: 15px;
}

.terms-content {
    max-height: 320px;

    overflow-y: auto;

    padding: 5px 15px 5px 5px;

    border-top: 1px solid #e5e7eb;

    border-bottom: 1px solid #e5e7eb;
}

.terms-content h2 {
    color: #1e3a8a;

    font-size: 16px;

    margin-top: 15px;

    margin-bottom: 5px;
}

.terms-content h2:first-child {
    margin-top: 5px;
}

.terms-content p {
    color: #374151;

    font-size: 13px;

    line-height: 1.6;

    margin-bottom: 9px;
}

.terms-checkbox {
    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin-top: 15px;

    padding: 10px;

    background: #f8fafc;

    border: 1px solid #e5e7eb;

    border-radius: 8px;
}

.terms-checkbox input {
    width: 17px;
    height: 17px;

    margin: 2px 0 0 0;

    padding: 0;

    flex-shrink: 0;

    cursor: pointer;
}

.terms-checkbox label {
    color: #374151;

    font-size: 13px;

    line-height: 1.5;

    cursor: pointer;
}

.terms-actions {
    display: flex;

    justify-content: center;

    gap: 10px;

    margin-top: 15px;
}

.agree-btn,
.disagree-btn {
    min-width: 110px;

    padding: 9px 18px;

    border: none;

    border-radius: 7px;

    color: white;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.25s;
}

.agree-btn {
    background: #16a34a;
}

.agree-btn:hover {
    background: #15803d;

    transform: translateY(-1px);
}

.disagree-btn {
    background: #dc2626;
}

.disagree-btn:hover {
    background: #b91c1c;

    transform: translateY(-1px);
}

.terms-message {
    text-align: center;

    font-size: 13px;

    font-weight: 600;

    margin-top: 10px;

    margin-bottom: 0;
}

.terms-link {
    display: block;

    text-align: center;

    margin-top: 12px;

    color: #2563eb;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    cursor: pointer;
}

.terms-link:hover {
    color: #1d4ed8;

    text-decoration: underline;
}

@media (max-width: 768px) {

    .terms-container {
        padding: 15px;
    }

    .terms-box {
        width: 95%;

        max-height: 88vh;

        padding: 20px;
    }

    .terms-logo {
        width: 50px;
        height: 50px;
    }

    .terms-box h1 {
        font-size: 22px;
    }

    .terms-intro {
        font-size: 12px;
    }

    .terms-content {
        max-height: 300px;

        padding-right: 10px;
    }

    .terms-content h2 {
        font-size: 15px;
    }

    .terms-content p {
        font-size: 12px;
    }

    .terms-actions {
        gap: 8px;
    }

    .agree-btn,
    .disagree-btn {
        min-width: 100px;

        padding: 8px 15px;

        font-size: 13px;
    }

}

@media (max-width: 480px) {

    .terms-box {
        padding: 17px;
    }

    .terms-box h1 {
        font-size: 20px;
    }

    .terms-content {
        max-height: 260px;
    }

    .terms-actions {
        flex-direction: row;
    }

    .agree-btn,
    .disagree-btn {
        width: 50%;
    }

}

.register-page {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 35px 20px;
}

.register-card {
    width: 520px;
    max-width: 95%;

    background: rgba(255, 255, 255, 0.97);

    padding: 40px;

    border-radius: 20px;

    border: 1px solid rgba(255, 255, 255, 0.8);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35);

    backdrop-filter: blur(8px);
}

.register-logo {
    width: 100px;
    height: 100px;

    object-fit: contain;

    display: block;

    margin: 0 auto 15px;

    filter: drop-shadow(
        0 5px 8px rgba(0, 0, 0, 0.2)
    );
}

.register-card h1 {
    text-align: center;

    color: #1e3a8a;

    font-size: 28px;
    font-weight: 700;

    margin-bottom: 10px;
}

.register-subtitle {
    text-align: center;

    color: #6b7280;

    font-size: 14px;

    line-height: 1.6;

    margin-bottom: 22px;
}

.register-field {
    margin-bottom: 14px;
}

.register-field label {
    display: block;

    color: #374151;

    font-size: 14px;
    font-weight: 600;

    margin-bottom: 6px;
}

.register-field input {
    width: 100%;

    margin: 0;

    padding: 12px 14px;

    border: 1px solid #d1d5db;

    border-radius: 9px;

    background: #f9fafb;

    color: #111827;

    font-size: 15px;

    outline: none;

    transition: 0.25s;
}

.register-field input:focus {
    border-color: #2563eb;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.15);
}

.register-error {
    display: block;

    min-height: 16px;

    margin-top: 4px;

    color: #dc2626;

    font-size: 12px;

    line-height: 1.4;
}

.register-terms-checkbox {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 4px;
    margin-bottom: 2px;

    color: #374151;

    font-size: 13px;
}

.register-terms-checkbox input {
    width: 16px;
    height: 16px;

    margin: 0;
    padding: 0;

    cursor: pointer;

    accent-color: #2563eb;

    flex-shrink: 0;
}

.register-terms-checkbox label {
    margin: 0;

    color: #374151;

    font-size: 13px;

    cursor: pointer;
}

.register-terms-checkbox a {
    color: #2563eb;

    font-weight: 600;

    text-decoration: none;

    cursor: pointer;
}

.register-terms-checkbox a:hover {
    color: #1d4ed8;

    text-decoration: underline;
}

.register-button {
    width: 100%;

    margin-top: 12px;

    padding: 13px;

    background: #2563eb;

    color: #ffffff;

    border: none;

    border-radius: 9px;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 5px 12px rgba(37, 99, 235, 0.25);

    transition: 0.25s;
}

.register-button:hover {
    background: #1d4ed8;

    transform: translateY(-1px);
}

.register-login-text {
    margin: 18px 0 0;

    text-align: center;

    color: #6b7280;

    font-size: 14px;
}

.register-login-link {
    color: #2563eb;

    font-weight: 600;

    text-decoration: none;
}

.register-login-link:hover {
    color: #1d4ed8;

    text-decoration: underline;
}

.register-terms-popup {
    display: none;

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100vh;

    padding: 20px;

    box-sizing: border-box;

    justify-content: center;
    align-items: center;

    background: rgba(0, 0, 0, 0.65);

    z-index: 99999;
}

.register-terms-popup-box {
    width: 600px;
    max-width: 95%;

    max-height: 85vh;

    padding: 25px;

    box-sizing: border-box;

    background: #ffffff;

    color: #111827;

    border-radius: 15px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35);

    overflow-y: auto;
}

.register-terms-popup-box h2 {
    margin: 0 0 10px;

    text-align: center;

    color: #1e3a8a;

    font-size: 24px;

    font-weight: 700;
}

.register-terms-popup-intro {
    margin: 0 0 18px;

    text-align: center;

    color: #6b7280;

    font-size: 14px;

    line-height: 1.6;
}

.register-terms-popup-content {
    max-height: 320px;

    overflow-y: auto;

    padding: 5px 15px;

    border-top: 1px solid #e5e7eb;

    border-bottom: 1px solid #e5e7eb;

    color: #374151;

    font-size: 14px;

    line-height: 1.7;
}

.register-terms-popup-content h3 {
    margin-top: 16px;

    margin-bottom: 6px;

    color: #1e3a8a;

    font-size: 15px;

    font-weight: 700;
}

.register-terms-popup-content h3:first-child {
    margin-top: 5px;
}

.register-terms-popup-content p {
    margin: 0 0 10px;

    color: #374151;

    font-size: 14px;

    line-height: 1.7;
}

.register-terms-popup-buttons {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;

    margin-top: 20px;
}

.register-terms-popup-buttons button {
    width: 110px;

    padding: 10px 15px;

    border: none;

    border-radius: 8px;

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;
}

.register-terms-agree {
    background: #16a34a;
}

.register-terms-agree:hover {
    background: #15803d;

    transform: translateY(-1px);
}

.register-terms-disagree {
    background: #dc2626;
}

.register-terms-disagree:hover {
    background: #b91c1c;

    transform: translateY(-1px);
}

.register-terms-popup-message {
    min-height: 18px;

    margin: 10px 0 0;

    text-align: center;

    color: #dc2626;

    font-size: 13px;

    font-weight: 600;
}

@media (max-width: 768px) {

    .register-card {
        width: 95%;

        padding: 30px 25px;
    }

    .register-logo {
        width: 90px;
        height: 90px;
    }

    .register-card h1 {
        font-size: 24px;
    }

    .register-subtitle {
        font-size: 13px;
    }

    .register-field input {
        font-size: 14px;

        padding: 11px 13px;
    }

    .register-terms-popup {
        padding: 12px;
    }

    .register-terms-popup-box {
        width: 100%;

        max-width: 100%;

        max-height: 90vh;

        padding: 20px;
    }

    .register-terms-popup-box h2 {
        font-size: 21px;
    }

    .register-terms-popup-intro {
        font-size: 13px;
    }

    .register-terms-popup-content {
        max-height: 280px;

        font-size: 13px;
    }

    .register-terms-popup-content p {
        font-size: 13px;
    }

    .register-terms-popup-buttons {
        gap: 10px;
    }

    .register-terms-popup-buttons button {
        flex: 1;

        width: auto;
    }

}

.login-box .login-terms-link {
    display: block;

    width: fit-content;
    height: auto;

    margin: 12px auto 0 auto;

    padding: 0;

    background: transparent;

    border: none;

    border-radius: 0;

    box-shadow: none;

    color: #2563eb;

    font-family: Arial, sans-serif;

    font-size: 12px;

    font-weight: 600;

    line-height: 1.4;

    text-align: center;

    text-decoration: none;

    cursor: pointer;

    transition: color 0.2s ease;
}

.login-box .login-terms-link:hover {
    background: transparent;

    color: #1d4ed8;

    transform: none;

    box-shadow: none;
}

.login-box .login-terms-link:active,
.login-box .login-terms-link:focus {
    background: transparent;

    color: #1d4ed8;

    outline: none;

    box-shadow: none;
}

.login-box .login-terms-checkbox {
    display: flex;

    width: 100%;

    align-items: center;

    justify-content: center;

    gap: 6px;

    margin: 8px 0 0 0;

    padding: 0;

    text-align: left;

    color: #555;

    font-size: 12px;
}

.login-box .login-terms-checkbox input[type="checkbox"] {
    display: block;

    width: 14px;
    height: 14px;

    min-width: 14px;

    margin: 0;

    padding: 0;

    appearance: auto;

    accent-color: #2563eb;

    cursor: pointer;
}

.login-box .login-terms-checkbox label {
    display: block;

    margin: 0;

    padding: 0;

    color: #555;

    font-size: 12px;

    font-weight: 400;

    line-height: 1.4;

    text-align: left;

    cursor: pointer;
}

#termsPopup {
    display: none;

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    padding: 20px;

    box-sizing: border-box;

    justify-content: center;

    align-items: center;

    background: rgba(0, 0, 0, 0.65);

    z-index: 9999;
}

.terms-popup-box {
    width: 100%;

    max-width: 600px;

    max-height: 85vh;

    padding: 25px;

    box-sizing: border-box;

    background: #ffffff;

    color: #111827;

    border-radius: 15px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.25);

    overflow-y: auto;

    text-align: left;
}

.terms-popup-box h2 {
    margin: 0 0 10px 0;

    color: #111827;

    font-size: 24px;

    font-weight: 700;

    text-align: center;
}

.terms-popup-intro {
    margin: 0 0 18px 0;

    color: #6b7280;

    font-size: 14px;

    line-height: 1.6;

    text-align: center;
}

.terms-popup-content {
    color: #374151;

    font-size: 14px;

    line-height: 1.7;
}

.terms-popup-content h3 {
    margin: 18px 0 6px 0;

    color: #111827;

    font-size: 15px;

    font-weight: 700;
}

.terms-popup-content h3:first-child {
    margin-top: 0;
}

.terms-popup-content p {
    margin: 0 0 10px 0;

    color: #374151;

    font-size: 14px;

    line-height: 1.7;
}

.terms-popup-buttons {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;

    margin-top: 25px;
}

.terms-popup-buttons button {
    width: auto;

    margin-top: 0;

    padding: 10px 20px;

    border: none;

    border-radius: 8px;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.terms-agree {
    background: #16a34a;

    color: #ffffff;
}

.terms-agree:hover {
    background: #15803d;
}

.terms-disagree {
    background: #dc2626;

    color: #ffffff;
}

.terms-disagree:hover {
    background: #b91c1c;
}

.terms-popup-message {
    min-height: 18px;

    margin: 12px 0 0 0;

    color: #dc2626;

    font-size: 13px;

    font-weight: 600;

    text-align: center;
}

@media (max-width: 600px) {

    #termsPopup {
        padding: 12px;
    }

    .terms-popup-box {
        max-height: 90vh;

        padding: 20px;

        border-radius: 12px;
    }

    .terms-popup-box h2 {
        font-size: 21px;
    }

    .terms-popup-intro,
    .terms-popup-content,
    .terms-popup-content p {
        font-size: 13px;
    }

    .terms-popup-content h3 {
        font-size: 14px;
    }

    .terms-popup-buttons {
        flex-direction: column;

        width: 100%;
    }

    .terms-popup-buttons button {
        width: 100%;
    }

    .login-box .login-terms-checkbox label {
        font-size: 12px;
    }

}

.sales-page .report-box p {
    color: #374151;
}

.sales-page .report-box label {
    color: #111827;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.analytics-grid .analytics-box {
    min-height: 360px;
}

.analytics-grid .analytics-box canvas {
    width: 100% !important;
    height: 280px !important;
}

.analytics-box h2 {
    margin: 0 0 6px;
    color: #1e3a8a;
    font-size: 20px;
}

.analytics-box .section-description {
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 13px;
}

@media (max-width: 900px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px), (hover: none) {
    .sidebar,
    .sidebar.hide {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        height: 100vh !important;
        width: 230px !important;
        max-width: 80vw !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        z-index: 1000 !important;
        transition: transform 0.25s ease !important;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar.hide {
        transform: translateX(calc(-100% + 26px)) !important;
    }

    .sidebar:not(.hide) {
        transform: translateX(0) !important;
        box-shadow: 6px 0 24px rgba(0, 0, 0, 0.45);
    }

    .sidebar.hide > * {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .sidebar.hide::after {
        content: "\2630";
        position: absolute;
        top: 14px;
        right: 0;
        width: 26px;
        text-align: center;
        color: #ffffff;
        font-size: 18px;
        line-height: 1;
    }

    body .content,
    body .content.expand {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        padding: 16px 12px 24px 38px !important;
        box-sizing: border-box !important;
    }

    .report-box,
    .table-container,
    .table-wrapper,
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .content table {
        width: 100% !important;
        min-width: 560px;
    }
}