/* Transport Specific Styles */
:root {
    --sidebar-width: 260px;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.transport-visitor {
    background: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Tracking Page --- */
.tracking-container {
    padding: 60px 20px;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.tracking-card {
    background: #fff;
    max-width: 700px;
    width: 100%;
    border-radius: 30px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

.card-header {
    text-align: center;
    margin-bottom: 40px;
}
.card-header i {
    font-size: 3.5rem;
    color: var(--brand-primary);
    margin-bottom: 20px;
}
.card-header h1 {
    font-size: 2rem;
    color: var(--brand-secondary);
    margin-bottom: 15px;
}
.card-header p {
    color: #64748b;
}

.search-section .input-group {
    display: flex;
    gap: 15px;
    background: #f1f5f9;
    padding: 10px;
    border-radius: 20px;
}
.search-section input {
    flex-grow: 1;
    background: transparent;
    border: none;
    padding: 15px 20px;
    font-size: 1.1rem;
    outline: none;
    font-family: inherit;
}
.search-section .btn {
    border-radius: 15px;
    padding: 10px 30px;
}

.tracking-result {
    margin-top: 40px;
    min-height: 200px;
    border-top: 2px dashed #e2e8f0;
    padding-top: 40px;
}

.empty-state {
    text-align: center;
    color: #94a3b8;
}
.empty-state i { font-size: 3rem; margin-bottom: 15px; opacity: 0.3; }

.result-box {
    animation: fadeIn 0.5s ease;
}
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 15px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.info-label { font-size: 0.85rem; color: #64748b; }
.info-value { font-weight: 700; color: var(--brand-secondary); }

/* --- Admin Dashboard Layout --- */
.admin-body {
    background: #f1f5f9;
    overflow: hidden;
}
.app-container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--brand-secondary);
    color: #fff;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}
.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}
.sidebar-logo { height: 40px; }

.sidebar-nav {
    flex-grow: 1;
    padding: 30px 10px;
}
.sidebar-nav ul { list-style: none; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 15px;
    cursor: pointer;
    margin-bottom: 5px;
    transition: all 0.3s;
    color: rgba(255,255,255,0.6);
}
.nav-item i { font-size: 1.2rem; min-width: 25px; }
.nav-item:hover, .nav-item.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.nav-item.active {
    background: var(--brand-primary);
    box-shadow: 0 5px 15px rgba(91,147,101,0.3);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.exit-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    opacity: 0.7;
}
.exit-link:hover { opacity: 1; }

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.top-bar {
    background: #fff;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8fafc;
    padding: 10px 20px;
    border-radius: 12px;
    width: 400px;
}
.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-family: inherit;
}

.view-container {
    padding: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}
.stat-card {
    background: #fff;
    padding: 30px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--card-shadow);
}
.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.trip-blue { background: #e0f2fe; color: #0369a1; }
.veh-teal { background: #f0fdf4; color: #15803d; }
.drv-gold { background: #fefce8; color: #a16207; }

.stat-info h3 { font-size: 2rem; color: var(--brand-secondary); }
.stat-info p { color: #64748b; }

.table-container {
    background: #fff;
    border-radius: 25px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th {
    text-align: right;
    padding: 15px 20px;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
}
td {
    padding: 20px;
    border-bottom: 1px solid #f8fafc;
    color: var(--brand-secondary);
    font-size: 0.95rem;
}

.status-pills {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.status-scheduled { background: #f1f5f9; color: #475569; }
.status-ongoing { background: #e0f2fe; color: #0369a1; }
.status-completed { background: #f0fdf4; color: #166534; }
.status-available { background: #f0fdf4; color: #166534; }

/* Modal Styles Refinement */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: #fff;
    width: 100%;
    max-width: 800px;
    border-radius: 30px;
    overflow: hidden;
    animation: zoomIn 0.3s ease;
}
.modal-header { padding: 30px; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; }
.modal-body { padding: 40px; max-height: 70vh; overflow-y: auto; }
.modal-footer { padding: 30px; background: #f8fafc; text-align: left; display: flex; gap: 10px; justify-content: flex-end; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: span 2; }
.form-group label { font-weight: 600; color: #64748b; font-size: 0.9rem; }
.form-group input, .form-group select {
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    font-family: inherit;
}
.form-group input:focus { border-color: var(--brand-primary); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes zoomIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 992px) {
    .sidebar { width: 80px; }
    .sidebar span, .logo-box span, .exit-link span { display: none; }
    .stats-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full { grid-column: span 1; }
}
