* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    background: #f5f5f5;
}

/*  NAVBAR  */
.navbar {
    width: 220px;
    min-height: 100vh;
    background: white;
    padding: 30px 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.navbar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.navbar a {
    text-decoration: none;
    color: #1a1a2e;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.2s;
}

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

.navbar i {
    font-size: 20px;
}

/*  CONTENT  */
.content {
    flex: 1;
    padding: 30px;
    overflow-x: auto;
}

/*  ZOEKBALK  */
.search-bar {
    margin-bottom: 20px;
    padding: 10px 16px;
    width: 100%;
    max-width: 350px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.search-bar:focus {
    border-color: #aaa;
}

/*  TABEL  */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    color: #888;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    font-size: 14px;
}

th a {
    text-decoration: none;
    color: #888;
}

th a:hover {
    color: #333;
}

/*  COUREUR ROW  */
.driver-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.driver-name {
    font-weight: bold;
    font-size: 14px;
    color: #1a1a2e;
}

.driver-team {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

/*  BADGES  */
.badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    background: #fff3cd;
    color: #856404;
    display: inline-block;
    margin-bottom: 3px;
    white-space: nowrap;
}

/*  STATUS DOTS  */
.dot-active {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #28a745;
    display: inline-block;
}

.dot-inactive {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dc3545;
    display: inline-block;
}

/*  VIEW LINK  */
.view-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

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

/*  DETAIL CARD  */
.detail-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.detail-card > img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.detail-card h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.detail-card h3 {
    font-size: 18px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.detail-card p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #444;
}

/*  TEAM DETAIL COUREURS  */
.team-driver-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.team-driver-row img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.team-driver-info {
    flex: 1;
}

/*  RESPONSIVE  */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .navbar {
        width: 100%;
        min-height: auto;
        padding: 15px 20px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .navbar ul {
        flex-direction: row;
        gap: 20px;
        margin-top: 0;
        flex-wrap: wrap;
    }

    .content {
        padding: 15px;
    }

    table {
        font-size: 13px;
    }

    th, td {
        padding: 8px 10px;
    }

    .detail-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .navbar ul {
        gap: 12px;
    }

    .navbar a span {
        display: none;
    }

    .search-bar {
        max-width: 100%;
    }
}
/*  KLIKBARE RIJEN  */
.clickable-row {
    cursor: pointer;
    transition: background 0.15s;
}

.clickable-row:hover {
    background: #f0f4ff;
}
/*  TOOLTIP  */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.tooltip-wrapper .tooltip-box {
    visibility: hidden;
    opacity: 0;
    background: white;
    color: #333;
    font-size: 13px;
    border-radius: 8px;
    padding: 10px 14px;
    position: absolute;
    z-index: 100;
    left: 0;
    top: 110%;
    width: 250px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: opacity 0.2s;
    pointer-events: none;
    line-height: 1.5;
}

.tooltip-wrapper:hover .tooltip-box {
    visibility: visible;
    opacity: 1;
}

/*  FORMULIER  */
.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: bold;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1a1a2e;
}

button[type="submit"] {
    padding: 10px 24px;
    background: #1a1a2e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background: #e63946;
}

/*  AUTH PAGINA  */
.auth-container {
    max-width: 400px;
    margin: 80px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.auth-container h1 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.auth-container h2 {
    font-size: 18px;
    margin-bottom: 24px;
    color: #555;
    font-weight: normal;
}

.auth-container a {
    color: #0066cc;
    text-decoration: none;
}

.auth-container a:hover {
    text-decoration: underline;
}

/*  FLASH MESSAGES  */
.message {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.message.error {
    background: #fde8e8;
    color: #c0392b;
}

.message.success {
    background: #e8f8e8;
    color: #27ae60;
}

/*  NAVBAR BOTTOM  */
.navbar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.navbar-bottom {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.navbar-user {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-badge {
    background: #1a1a2e;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

.logout-btn {
    width: 100%;
    padding: 8px 12px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.logout-btn:hover {
    background: #fde8e8;
    color: #c0392b;
    border-color: #c0392b;
}