
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f6fa;
    color: #202b3c;
}

.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 8px 35px rgba(0,0,0,.07);
    text-align: center;
}

.logo {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    background: #1758d5;
    color: white;
    font-size: 25px;
    font-weight: bold;
    border-radius: 12px;
    margin: 0 auto 20px;
}

h1 {
    font-size: 25px;
    margin-bottom: 10px;
}

.muted {
    color: #8490a2;
    font-size: 14px;
    margin: 10px 0 25px;
}

label {
    display: block;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    margin: 18px 0 8px;
}

input, select {
    width: 100%;
    padding: 14px;
    border: 1px solid #dce2eb;
    border-radius: 7px;
    background: white;
    outline: none;
    font-size: 14px;
}

input:focus, select:focus {
    border-color: #1758d5;
}

button {
    border: none;
    border-radius: 7px;
    padding: 13px 20px;
    background: #1758d5;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

button:hover {
    background: #1045ad;
}

button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.login-card form button {
    width: 100%;
    margin-top: 22px;
}

.footer {
    margin-top: 30px;
    color: #a0a9b6;
    font-size: 12px;
}

.error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 15px;
}

.topbar {
    background: white;
    min-height: 75px;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.topbar strong {
    display: block;
    font-size: 17px;
}

.topbar small {
    color: #8993a3;
}

.logout {
    background: #fff0f0;
    color: #d83232;
}

.dashboard {
    max-width: 1050px;
    margin: 40px auto;
    padding: 0 20px;
}

.tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #dce2eb;
    margin: 25px 0;
}

.tab {
    background: transparent;
    color: #68758a;
    border-radius: 0;
}

.tab.active {
    color: #1758d5;
    background: transparent;
    border-bottom: 3px solid #1758d5;
}

.panel {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,.04);
}

.panel h2 {
    font-size: 20px;
    margin-bottom: 18px;
}

.panel form {
    max-width: 550px;
}

.panel form button {
    width: 100%;
    margin-top: 25px;
}

.hidden {
    display: none !important;
}

.result-card {
    margin-top: 25px;
    padding: 22px;
    background: #eff9f2;
    border: 1px solid #cce9d5;
    border-radius: 8px;
    overflow-wrap: anywhere;
}

.result-card h3 {
    color: #168348;
    margin-bottom: 15px;
}

.result-card p {
    margin: 12px 0;
    font-size: 14px;
}

.upload-box {
    padding: 25px;
    border: 2px dashed #cbd5e1;
    border-radius: 9px;
    margin: 20px 0;
}

.upload-box small {
    display: block;
    color: #8993a3;
    margin-top: 12px;
}

#progress, #bulkSummary {
    margin: 20px 0;
    font-size: 14px;
}

.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th, td {
    padding: 13px;
    border-bottom: 1px solid #e9edf3;
    text-align: left;
    font-size: 13px;
}

th {
    background: #f5f7fa;
}

.secondary {
    background: #168348;
}

@media(max-width: 600px) {
    .dashboard {
        margin: 25px auto;
    }

    .panel {
        padding: 20px 15px;
    }

    .tabs {
        gap: 0;
    }

    .tab {
        flex: 1;
        padding: 12px 5px;
        font-size: 12px;
    }

    .topbar {
        padding: 15px;
    }
}

.upload-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.upload-header p {
    color: #8993a3;
    font-size: 13px;
    margin-top: 6px;
}

.upload-header .secondary {
    white-space: nowrap;
    background: #168348;
}

.upload-header .secondary:hover {
    background: #116b3a;
}