* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f1f5f9;
    color: #1e293b;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
}

.login-container {
    width: 410px;
    max-width: 95%;
}

.brand {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.brand h1 {
    font-size: 36px;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.brand p {
    font-size: 13px;
    letter-spacing: 2px;
    color: #cbd5e1;
}

.login-card, .panel {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 18px #0000000d;
}

.login-card h2 {
    margin-top: 0;
}

.muted {
    color: #64748b;
    font-size: 14px;
}

label {
    display: block;
    margin: 18px 0 8px;
    font-size: 14px;
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

button {
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: bold;
}

.login-card button {
    width: 100%;
    margin-top: 24px;
}

.footer {
    text-align: center;
    color: #94a3b8;
    margin-top: 25px;
    font-size: 12px;
}

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 6px;
}

.sidebar {
    position: fixed;
    width: 245px;
    height: 100vh;
    overflow-y: auto;
    background: #14243b;
    color: white;
    padding: 22px 15px;
}

.sidebar h2 {
    margin-bottom: 5px;
}

.sidebar small {
    color: #94a3b8;
}

.menu-title {
    color: #94a3b8;
    font-size: 11px;
    margin: 30px 12px 12px;
}

.sidebar a, .sidebar span {
    display: block;
    padding: 12px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
}

.sidebar .active {
    background: #2563eb;
    color: white;
}

.main-content {
    margin-left: 245px;
    padding: 28px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.panel {
    margin-bottom: 24px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.stat {
    background: white;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.stat small {
    color: #64748b;
}

.green {
    color: #15803d;
}

.inline {
    display: inline;
}

.logout {
    margin-left: 15px;
    background: #475569;
}

@media(max-width: 700px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    header {
        flex-wrap: wrap;
    }
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.report-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.report-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.table-wrap {
    overflow: auto;
    max-height: 70vh;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    white-space: nowrap;
}

.report-table th {
    background: #14243b;
    color: white;
    padding: 14px 12px;
    text-align: left;
    position: sticky;
    top: 0;
}

.report-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #e2e8f0;
}

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

.report-table tbody tr:hover {
    background: #dbeafe;
}

.report-table .number {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.report-table .main-account {
    font-weight: bold;
    background: #e2e8f0;
}

.sidebar a:hover {
    background: #253c57;
}


.account-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.account-link:hover {
    text-decoration: underline;
}

.button-secondary {
    background: #475569;
    color: white;
    border-radius: 6px;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 20px 0 0;
}

.pagination a {
    background: #2563eb;
    color: white;
    padding: 9px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
}

.pagination span {
    font-size: 14px;
    font-weight: bold;
}

.stat h2 {
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}


.excel-button {
    background: #15803d;
    color: white;
}

.excel-button:hover {
    background: #166534;
}


.status-on,
.status-off {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.status-on {
    background: #dcfce7;
    color: #166534;
}

.status-off {
    background: #e2e8f0;
    color: #475569;
}

.btn-enable {
    background: #15803d;
    padding: 8px 14px;
    font-size: 12px;
}

.btn-disable {
    background: #b91c1c;
    padding: 8px 14px;
    font-size: 12px;
}

.success-message {
    background: #dcfce7;
    color: #166534;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}


/* Dashboard */

.dashboard-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

.dashboard-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #dce3ec;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: #17263a;
    transition: border-color .15s, box-shadow .15s,
                transform .15s;
}

.dashboard-card:hover {
    border-color: #2563eb;
    box-shadow: 0 6px 20px #2563eb15;
    transform: translateY(-3px);
}

.dashboard-card h3 {
    margin: 12px 0;
    font-size: 18px;
}

.dashboard-card p {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 24px;
}

.dashboard-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 25px;
}

.dashboard-link {
    margin-top: auto;
    color: #2563eb;
    font-weight: bold;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .dashboard-grid,
    .dashboard-selection {
        grid-template-columns: 1fr;
    }
}



/* COMPANY LOGO */

.login-logo {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    margin: 0 auto 22px;
    max-width: 320px;
}

.login-logo img {
    display: block;
    width: 100%;
    max-height: 110px;
    object-fit: contain;
}

.sidebar-logo {
    background: #ffffff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 18px;
}

.sidebar-logo img {
    display: block;
    width: 100%;
    max-height: 75px;
    object-fit: contain;
}

.logo-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 320px;
    max-width: 100%;
    min-height: 140px;
    padding: 20px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    margin: 20px 0;
}

.logo-preview img {
    max-width: 100%;
    max-height: 130px;
    object-fit: contain;
}
