/* AUTH STYLES */

/* Auth Button in Navbar */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: #ccc;
    transition: transform 0.2s, border-color 0.3s;
    position: relative;
    display: flex;
    /* Ensure image centers */
    justify-content: center;
    align-items: center;
}

.auth-btn:hover {
    transform: scale(1.1);
}

.navbar.scrolled .auth-btn {
    border-color: #222;
}

.auth-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modal Overlay */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Box */
.auth-box {
    background: #fff;
    width: 90%;
    max-width: 400px;
    /* Default for login */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    font-family: "Montserrat", sans-serif;
    /* Ensure font consistency */
}

.auth-box.wide {
    max-width: 800px;
    /* Wider for Info Table */
}

/* Header */
.auth-header {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.auth-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
    font-weight: 700;
}

/* Forms */
.auth-body {
    padding: 30px;
}

.close-auth {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
    z-index: 10;
}

.close-auth:hover {
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    box-sizing: border-box;
    /* Fix padding issues */
}

.form-group input:focus,
.form-group select:focus {
    border-color: #333;
    outline: none;
}

/* Buttons */
.auth-submit-btn {
    width: 100%;
    padding: 12px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
}

.auth-submit-btn:hover {
    background: #000;
}

/* Links */
.auth-links {
    margin-top: 15px;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

.auth-links span {
    cursor: pointer;
    color: #333;
    font-weight: 600;
    text-decoration: underline;
}

/* Tables */
.user-info-section {
    padding: 20px;
}

.user-info-table,
.trips-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.user-info-table th,
.trips-table th,
.user-info-table td,
.trips-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.user-info-table th {
    width: 30%;
    color: #888;
    font-weight: 500;
}

.user-info-table td {
    font-weight: 600;
    color: #333;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
    border-left: 4px solid #333;
    padding-left: 10px;
}

.logout-btn {
    background: #d9534f;
    margin-top: 10px;
}

.logout-btn:hover {
    background: #c9302c;
}