/* Transporter Dashboard Styles */
:root {
    --bg-color: #fdfaf5;
    --card-bg: #ffffff;
    --primary-green: #143b23;
    --primary-green-hover: #0e2a18;
    --text-main: #1c1c1c;
    --text-muted: #6b6b6b;
    --border-color: #eae9e5;
    --accent-color: #d05d29;
    --star-color: #d19a2e;
    --sidebar-width: 260px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.02);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }

/* Layout */
.dashboard-layout {
    display: none;
    min-height: 100vh;
}
.dashboard-layout.show {
    display: flex;
}

/* Auth Cards */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at top left, #fdfaf5 0%, #e8f0eb 100%);
}
.auth-container.hide {
    display: none;
}

.auth-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(20,59,37,0.08);
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    animation: fadeIn 0.4s ease;
}

.auth-header {
    background: var(--primary-green);
    padding: 32px 24px;
    text-align: center;
    color: white;
}

.auth-header h2 { font-size: 26px; margin-bottom: 6px; }
.auth-header p { font-size: 13px; opacity: 0.8; font-family: 'Inter', sans-serif; }

.auth-body {
    padding: 32px 24px;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab.active {
    color: var(--primary-green);
    border-bottom: 3px solid var(--primary-green);
    margin-bottom: -2px;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--card-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
    color: var(--primary-green);
    font-size: 20px;
    font-weight: 700;
}

.sidebar-header .sub {
    font-size: 11px;
    color: var(--accent-color);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.sidebar-nav {
    flex: 1;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.nav-item i { font-size: 20px; }
.nav-item:hover { background: #f5f5f5; color: var(--text-main); }
.nav-item.active { background: var(--primary-green); color: white; }

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.sidebar-footer a, .sidebar-footer button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.sidebar-footer a:hover, .sidebar-footer button:hover { background: #f5f5f5; color: var(--accent-color); }

.hotel-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 12px 16px;
    background: #f9f8f5;
    border-radius: var(--radius-sm);
}

.hotel-profile .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.hotel-profile .info strong {
    font-size: 13px;
    display: block;
    color: var(--text-main);
}

.hotel-profile .info span {
    font-size: 11px;
    color: var(--primary-green);
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.top-header {
    height: 70px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.top-header h1 {
    font-size: 22px;
    color: var(--primary-green);
}

.content-area {
    padding: 32px;
}

/* Tab Panes */
.tab-pane { display: none; animation: fadeIn 0.35s ease; }
.tab-pane.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stepper Progress Bar */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    position: relative;
    overflow-x: auto;
}

.progress-track {
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    height: 3px;
    background: var(--border-color);
    z-index: 1;
    transform: translateY(-50%);
}

.progress-track-fill {
    height: 100%;
    background: var(--primary-green);
    width: 0%;
    transition: width 0.3s ease;
}

.wizard-step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    background: var(--card-bg);
    padding: 0 8px;
    position: relative;
    text-align: center;
    min-width: 90px;
}

.wizard-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s;
}

.wizard-step-node.active .wizard-step-circle {
    border-color: var(--primary-green);
    background: var(--primary-green);
    color: white;
    box-shadow: 0 0 0 4px rgba(20,59,37,0.15);
}

.wizard-step-node.completed .wizard-step-circle {
    border-color: var(--primary-green);
    background: #e8f0eb;
    color: var(--primary-green);
}

.wizard-step-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 8px;
    white-space: nowrap;
}

.wizard-step-node.active .wizard-step-label {
    color: var(--primary-green);
}

/* Stepper Panes */
.wizard-step-pane {
    display: none;
    animation: slideIn 0.3s ease;
}

.wizard-step-pane.active {
    display: block;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group { margin-bottom: 0; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-main);
}

.form-group label span {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 11px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    background: white;
}

.form-input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(20, 59, 35, 0.08);
}

textarea.form-input { min-height: 100px; resize: vertical; }

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236b6b6b'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* Category selector cards */
.category-selection-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 10px;
}

.category-selection-card {
    border: 2px solid var(--border-color);
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.category-selection-card i {
    font-size: 36px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.category-selection-card strong {
    font-size: 15px;
    color: var(--text-main);
}

.category-selection-card p {
    font-size: 11px;
    color: var(--text-muted);
}

.category-selection-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

.category-selection-card.active {
    border-color: var(--primary-green);
    background: #e8f0eb;
}

.category-selection-card.active i {
    color: var(--primary-green);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.green { background: #e8f0eb; color: var(--primary-green); }
.stat-icon.orange { background: #fff4e5; color: var(--accent-color); }
.stat-icon.blue { background: #e8f0fa; color: #2563eb; }
.stat-icon.gold { background: #fef7e0; color: var(--star-color); }

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 500;
}

.stat-value {
    font-size: 26px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--text-main);
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    padding: 24px;
    border: 1px solid var(--border-color);
}

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

.card-header h3 {
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

/* Tables */
.table-responsive { overflow-x: auto; }

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

.data-table th {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #fafaf7;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    font-size: 14px;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover { background: #fafaf7; }

/* Status Pills */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.pill-pending { background: #fff4e5; color: #b77b21; }
.pill-approved { background: #e8f0eb; color: var(--primary-green); }
.pill-confirmed { background: #e8f0fa; color: #2563eb; }
.pill-cancelled { background: #fee; color: #c00; }

.pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Buttons */
.btn {
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary { background: var(--primary-green); color: white; }
.btn-primary:hover { background: var(--primary-green-hover); }
.btn-accent { background: var(--accent-color); color: white; }
.btn-accent:hover { background: #b84d1f; }
.btn-outline { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); }
.btn-outline:hover { border-color: var(--primary-green); color: var(--primary-green); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-ghost { background: none; border: none; color: var(--text-muted); font-size: 13px; cursor: pointer; padding: 6px 10px; }
.btn-ghost:hover { color: var(--primary-green); }

/* Vehicle Onboarding Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.property-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.property-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.property-card-body { padding: 20px; }

.property-card-body h4 {
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
}

.property-card-loc {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.property-card-specs {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 14px;
}

.property-card-specs .spec {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.property-card-specs .spec strong {
    font-size: 14px;
    color: var(--text-main);
}

.property-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-green);
}

.property-card-price span {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
}

/* Edit Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.show { opacity: 1; pointer-events: auto; }

.modal-card {
    background: var(--card-bg);
    width: 640px;
    max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transform: translateY(20px);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.modal-overlay.show .modal-card { transform: translateY(0); }

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h3 { font-size: 18px; }

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #fafaf7;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    flex-shrink: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.close-btn:hover { color: var(--text-main); }

/* Alert Messages */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    display: none;
}

.alert-success { background: #e8f0eb; color: var(--primary-green); }
.alert-error { background: #fee; color: #c00; }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i { font-size: 48px; margin-bottom: 16px; display: block; opacity: 0.4; }
.empty-state h4 { font-size: 18px; margin-bottom: 8px; color: var(--text-main); font-family: 'Inter', sans-serif; }
.empty-state p { font-size: 14px; margin-bottom: 20px; }

/* Spin */
.spin {
    animation: rotating 1s linear infinite;
}
@keyframes rotating {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .category-selection-cards { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; }
    .stats-grid { grid-template-columns: 1fr; }
    .properties-grid { grid-template-columns: 1fr; }
    .content-area { padding: 16px; }
    .modal-card { width: 95%; margin: 0 10px; }
}
