@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background-color: oklch(0.11 0.005 280);
    font-family: "Inter", sans-serif;
    color: #fff;
    display: flex;
    flex-direction: column;
}

/* ===================== HEADER ====================== */
.header {
    display: block;
    box-sizing: border-box;
    background-color: black;
    height: 85px;
    width: 100%;
    border-bottom: 2px solid oklch(0.26 0.012 265);
}

.header__div {
    display: flex;
    align-items: center;
    padding-left: 10%;
    padding-right: 10%;
    height: 100%;
    box-sizing: border-box;
    gap: 60%;
}

.header__home {
    display: flex;
    align-items: center;
    gap: 10px;
    color: oklch(0.62 0.22 25);
    text-decoration: none;
    font-size: 2rem;
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 1.2px;
    white-space: nowrap;
}

.header__home__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: oklch(0.62 0.22 25 / 15%);
    border: 1px solid oklch(0.62 0.22 25 / 40%);
    color: oklch(0.62 0.22 25);
}

.header__nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.header__nav a {
    color: oklch(0.62 0.22 25);
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    text-decoration: none;
    padding: 3%;
    white-space: nowrap;
}

.header__nav a:hover {
    transform: scale(1.05);
    box-shadow: 0 0 5px;
}

/* ===================== AUTH CONTAINER ====================== */
.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    background-color: oklch(0.16 0.008 280);
    border: 1px solid oklch(0.26 0.012 265);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.auth-card h1 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 2.2rem;
    color: oklch(0.62 0.22 25);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.auth-card .subtitle {
    color: oklch(0.7 0.01 280);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: oklch(0.75 0.01 280);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    background-color: oklch(0.2 0.01 280);
    border: 1px solid oklch(0.3 0.01 280);
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    font-family: "Inter", sans-serif;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: oklch(0.62 0.22 25);
}

.form-group input::placeholder {
    color: oklch(0.5 0.01 280);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background-color: oklch(0.62 0.22 25);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 8px;
}

.btn-primary:hover {
    background-color: oklch(0.55 0.2 25);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-links {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: oklch(0.7 0.01 280);
}

.auth-links a {
    color: oklch(0.62 0.22 25);
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* ===================== ALERTAS ====================== */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none;
}

.alert.show {
    display: block;
}

.alert-error {
    background-color: oklch(0.4 0.2 25 / 15%);
    border: 1px solid oklch(0.55 0.2 25 / 40%);
    color: oklch(0.75 0.15 25);
}

.alert-success {
    background-color: oklch(0.5 0.15 150 / 15%);
    border: 1px solid oklch(0.55 0.15 150 / 40%);
    color: oklch(0.75 0.12 150);
}

/* ===================== PROFILE ====================== */
.profile-container {
    flex: 1;
    padding: 40px 10%;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.profile-card {
    background-color: oklch(0.16 0.008 280);
    border: 1px solid oklch(0.26 0.012 265);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
}

.profile-card h2 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.8rem;
    color: oklch(0.62 0.22 25);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.profile-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.profile-info .info-item {
    background-color: oklch(0.2 0.01 280);
    border: 1px solid oklch(0.3 0.01 280);
    border-radius: 8px;
    padding: 16px;
}

.profile-info .info-item .label {
    font-size: 0.75rem;
    color: oklch(0.6 0.01 280);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.profile-info .info-item .value {
    font-size: 1.05rem;
    font-weight: 600;
}

.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.USER {
    background-color: oklch(0.5 0.15 250 / 20%);
    color: oklch(0.75 0.12 250);
    border: 1px solid oklch(0.55 0.15 250 / 40%);
}

.role-badge.MECANICA {
    background-color: oklch(0.5 0.15 80 / 20%);
    color: oklch(0.75 0.12 80);
    border: 1px solid oklch(0.55 0.15 80 / 40%);
}

.role-badge.ADMIN {
    background-color: oklch(0.5 0.2 25 / 20%);
    color: oklch(0.75 0.15 25);
    border: 1px solid oklch(0.55 0.2 25 / 40%);
}

/* ===================== ADMIN ====================== */
.admin-container {
    flex: 1;
    padding: 40px 10%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 10px 20px;
    background-color: oklch(0.2 0.01 280);
    border: 1px solid oklch(0.3 0.01 280);
    border-radius: 8px;
    color: oklch(0.7 0.01 280);
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-tab:hover {
    border-color: oklch(0.62 0.22 25);
    color: #fff;
}

.admin-tab.active {
    background-color: oklch(0.62 0.22 25);
    color: #fff;
    border-color: oklch(0.62 0.22 25);
}

.admin-panel {
    display: none;
}

.admin-panel.active {
    display: block;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background-color: oklch(0.16 0.008 280);
    border: 1px solid oklch(0.26 0.012 265);
    border-radius: 12px;
    overflow: hidden;
}

.admin-table th {
    background-color: oklch(0.2 0.01 280);
    padding: 14px 16px;
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: oklch(0.6 0.01 280);
    border-bottom: 1px solid oklch(0.3 0.01 280);
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid oklch(0.24 0.01 280);
    font-size: 0.9rem;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background-color: oklch(0.19 0.01 280);
}

.btn-small {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid oklch(0.3 0.01 280);
    background-color: oklch(0.2 0.01 280);
    color: #fff;
    font-size: 0.8rem;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 4px;
}

.btn-small:hover {
    border-color: oklch(0.62 0.22 25);
}

.btn-small.danger {
    border-color: oklch(0.55 0.2 25 / 40%);
    color: oklch(0.75 0.15 25);
}

.btn-small.danger:hover {
    background-color: oklch(0.55 0.2 25 / 15%);
}

.btn-small.success {
    border-color: oklch(0.55 0.15 150 / 40%);
    color: oklch(0.75 0.12 150);
}

.btn-small.success:hover {
    background-color: oklch(0.55 0.15 150 / 15%);
}

/* ===================== MECANICA ====================== */
.mechanic-container {
    flex: 1;
    padding: 40px 10%;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.vehicle-card {
    background-color: oklch(0.16 0.008 280);
    border: 1px solid oklch(0.26 0.012 265);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s;
}

.vehicle-card:hover {
    border-color: oklch(0.62 0.22 25 / 50%);
}

.vehicle-card .vehicle-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.vehicle-card .vehicle-info p {
    color: oklch(0.6 0.01 280);
    font-size: 0.85rem;
}

/* ===================== VÍNCULOS (Cliente ↔ Mecânica) ====================== */
.vinculos-section {
    margin-bottom: 32px;
}

.vinculos-section h2 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.6rem;
    color: oklch(0.62 0.22 25);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.busca-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.busca-form input,
.busca-form select {
    flex: 1;
    min-width: 220px;
    padding: 12px 14px;
    background-color: oklch(0.2 0.01 280);
    border: 1px solid oklch(0.3 0.01 280);
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    font-family: "Inter", sans-serif;
}

.busca-form input:focus,
.busca-form select:focus {
    outline: none;
    border-color: oklch(0.62 0.22 25);
}

.busca-form button {
    padding: 12px 22px;
    background-color: oklch(0.62 0.22 25);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    white-space: nowrap;
}

.busca-form button:hover {
    background-color: oklch(0.55 0.2 25);
}

.busca-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.vinculo-card {
    background-color: oklch(0.16 0.008 280);
    border: 1px solid oklch(0.26 0.012 265);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    transition: border-color 0.2s;
}

.vinculo-card:hover {
    border-color: oklch(0.62 0.22 25 / 50%);
}

.vinculo-card .vinculo-info h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.vinculo-card .vinculo-info p {
    color: oklch(0.6 0.01 280);
    font-size: 0.85rem;
}

.vinculo-card .vinculo-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.vinculo-vazio {
    color: oklch(0.6 0.01 280);
    text-align: center;
    padding: 30px;
    font-size: 0.9rem;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.PENDENTE {
    background-color: oklch(0.55 0.15 80 / 20%);
    color: oklch(0.78 0.13 80);
    border: 1px solid oklch(0.55 0.15 80 / 40%);
}

.status-badge.ATIVO {
    background-color: oklch(0.5 0.15 150 / 20%);
    color: oklch(0.75 0.12 150);
    border: 1px solid oklch(0.55 0.15 150 / 40%);
}

.status-badge.RECUSADO,
.status-badge.BLOQUEADO {
    background-color: oklch(0.4 0.2 25 / 15%);
    border: 1px solid oklch(0.55 0.2 25 / 40%);
    color: oklch(0.75 0.15 25);
}

.status-badge.INATIVO {
    background-color: oklch(0.3 0.01 280 / 40%);
    border: 1px solid oklch(0.4 0.01 280);
    color: oklch(0.65 0.01 280);
}

/* ===================== RESPONSIVE ====================== */
@media (max-width: 768px) {
    .header__div {
        padding-left: 5%;
        padding-right: 5%;
        gap: 20%;
    }

    .profile-info {
        grid-template-columns: 1fr;
    }

    .admin-container,
    .profile-container,
    .mechanic-container {
        padding: 20px 5%;
    }

    .auth-card {
        padding: 24px;
    }
}
