* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f6f8;
    color: #222;
}

/* NAVBAR */

.navbar {
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #ddd;

    display: flex;
    align-items: center;

    padding: 0 28px;
}

.navbar-brand {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.5px;

    margin-right: 45px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.navbar a {
    text-decoration: none;
    color: #444;
    font-size: 14px;
}

.navbar a:hover {
    color: #000;
}

.navbar-user {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 20px;

    font-size: 14px;
}

.navbar-user span {
    font-weight: 600;
}

/* CONTENT */

.content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 35px;
}
/* =========================
   DASHBOARD
   ========================= */

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

.page-header h1 {
    margin: 0 0 8px 0;
    font-size: 30px;
    font-weight: 700;
}

.page-header p {
    margin: 0;
    color: #777;
    font-size: 14px;
}


/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 18px;

    border-radius: 8px;

    text-decoration: none;

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

    transition: 0.2s ease;
}

.btn-primary {
    background: #111;
    color: white;
}

.btn-primary:hover {
    background: #333;
}

.btn-secondary {
    background: #f1f2f4;
    color: #222;
}

.btn-secondary:hover {
    background: #e5e6e8;
}


/* STATISTICS */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;

    margin-bottom: 24px;
}

.stat-card {
    background: white;

    border: 1px solid #e3e4e7;
    border-radius: 12px;

    padding: 22px;
}

.stat-label {
    font-size: 13px;
    color: #777;

    margin-bottom: 10px;
}

.stat-value {
    font-size: 30px;
    font-weight: 700;

    margin-bottom: 6px;
}

.stat-description {
    font-size: 12px;
    color: #999;
}

.status-ok {
    color: #159447;
}


/* PANELS */

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

.panel {
    background: white;

    border: 1px solid #e3e4e7;
    border-radius: 12px;

    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 22px 24px;

    border-bottom: 1px solid #eee;
}

.panel-header h2 {
    margin: 0 0 5px 0;
    font-size: 17px;
}

.panel-header p {
    margin: 0;
    font-size: 12px;
    color: #999;
}

.panel-link {
    color: #555;
    text-decoration: none;
    font-size: 13px;
}

.panel-link:hover {
    color: #000;
}


/* EMPTY STATE */

.empty-state {
    padding: 55px 30px;

    text-align: center;
}

.empty-icon {
    font-size: 38px;
    margin-bottom: 15px;
}

.empty-state h3 {
    margin: 0 0 8px 0;
    font-size: 17px;
}

.empty-state p {
    max-width: 420px;
    margin: 0 auto 22px auto;

    color: #888;
    font-size: 13px;
    line-height: 1.6;
}


/* QUICK ACTIONS */

.quick-actions {
    padding: 10px 14px;
}

.quick-action {
    display: flex;
    align-items: center;

    gap: 15px;

    padding: 16px 10px;

    border-bottom: 1px solid #eee;

    text-decoration: none;
    color: #222;
}

.quick-action:last-child {
    border-bottom: none;
}

.quick-action:hover {
    background: #fafafa;
}

.quick-icon {
    width: 38px;
    height: 38px;

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

    background: #f1f2f4;
    border-radius: 8px;

    font-size: 17px;
}

.quick-action strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.quick-action span {
    display: block;
    font-size: 12px;
    color: #999;
}


/* RESPONSIVE */

@media (max-width: 1000px) {

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

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

}

@media (max-width: 650px) {

    .navbar-menu {
        display: none;
    }

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

    .page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

}
/* =========================
   LOGIN
   ========================= */

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

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

    background: #f5f6f8;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: #ffffff;

    border: 1px solid #e3e4e7;
    border-radius: 14px;

    padding: 40px;

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
}

.login-logo {
    text-align: center;

    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;

    margin-bottom: 8px;
}

.login-subtitle {
    text-align: center;

    color: #888;
    font-size: 13px;

    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    font-size: 13px;
    font-weight: 600;
}

.form-group input {
    width: 100%;

    padding: 12px 13px;

    border: 1px solid #d9dadd;
    border-radius: 8px;

    font-size: 14px;

    outline: none;

    transition: border-color 0.2s ease;
}

.form-group input:focus {
    border-color: #777;
}

.login-button {
    width: 100%;

    padding: 12px;

    border: none;
    border-radius: 8px;

    background: #111;
    color: #fff;

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

    cursor: pointer;

    transition: background 0.2s ease;
}

.login-button:hover {
    background: #333;
}

.login-error {
    margin-bottom: 18px;

    padding: 11px 12px;

    border-radius: 7px;

    background: #fff1f1;

    color: #b42318;

    font-size: 13px;
}
/* =========================
   DOCUMENTS
   ========================= */

.table-container {
    width: 100%;
    overflow-x: auto;
}

.documents-table {
    width: 100%;
    border-collapse: collapse;
}

.documents-table th {
    padding: 14px 20px;

    text-align: left;

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

    color: #777;

    background: #fafafa;

    border-bottom: 1px solid #eee;
}

.documents-table td {
    padding: 15px 20px;

    font-size: 13px;

    border-bottom: 1px solid #eee;
}

.table-empty {
    min-height: 300px;

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

    gap: 8px;

    text-align: center;
}

.table-empty .empty-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.table-empty strong {
    font-size: 15px;
}

.table-empty span {
    color: #999;
    font-size: 12px;

    margin-bottom: 12px;
}
/* =========================
   CONVERSION
   ========================= */

.conversion-form {
    padding: 30px;
}

.upload-area {
    border: 2px dashed #d9dadd;
    border-radius: 12px;

    padding: 55px 30px;

    text-align: center;

    background: #fafafa;
}

.upload-icon {
    font-size: 38px;
    margin-bottom: 12px;
}

.upload-area h3 {
    margin: 0 0 8px 0;
    font-size: 17px;
}

.upload-area p {
    margin: 0 0 22px 0;

    color: #888;
    font-size: 13px;
}

.file-button {
    display: inline-flex;

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

    padding: 11px 18px;

    border-radius: 8px;

    background: #111;
    color: #fff;

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

    cursor: pointer;
}

.file-button:hover {
    background: #333;
}

.file-button input {
    display: none;
}

.file-hint {
    margin-top: 12px;

    color: #999;
    font-size: 12px;
}

.conversion-actions {
    display: flex;
    justify-content: flex-end;

    gap: 10px;

    margin-top: 24px;
}
/* =========================
   TABLE ACTIONS
   ========================= */

.table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 10px;

    border: 1px solid #ddd;
    border-radius: 6px;

    background: #fff;
    color: #333;

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

    text-decoration: none;
    cursor: pointer;
}

.table-action:hover {
    background: #f5f5f5;
}

.table-action-danger {
    border-color: #e3b5b5;
    color: #b42318;
    background: #fff;
}

.table-action-danger:hover {
    background: #fff1f1;
}
/* =========================
   SELECTED FILE
   ========================= */

.selected-file {
    margin-top: 16px;

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

    color: #555;
}
/* =========================
   RECENT DOCUMENTS
   ========================= */

.recent-documents {
    width: 100%;
}

.recent-document {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 16px 20px;

    border-bottom: 1px solid #eee;
}

.recent-document:last-child {
    border-bottom: none;
}

.recent-document-info {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 5px;
}

.recent-document-info strong {
    font-size: 14px;

    color: #222;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-document-info span {
    font-size: 12px;

    color: #999;
}

.recent-document-meta {
    display: flex;
    align-items: center;

    gap: 14px;

    flex-shrink: 0;

    font-size: 12px;

    color: #777;
}

.recent-document-meta .table-action {
    flex-shrink: 0;
}

.vehicle-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.vehicle-detail-item {
    padding: 16px 18px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fafafa;
}

.vehicle-detail-label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.vehicle-detail-value {
    display: block;
    font-size: 15px;
    color: #222;
}

.vehicle-vin {
    font-family: monospace;
    letter-spacing: 0.04em;
}

@media (max-width: 700px) {

    .vehicle-details-grid {
        grid-template-columns: 1fr;
    }

}