/* ========================================================================= */
/* TAXIBOOK MANAGER - Styles communs */
/* ========================================================================= */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* ========================================================================= */
/* LOGIN PAGE */
/* ========================================================================= */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
}

.login-logo {
    text-align: center;
    font-size: 36px;
    color: #f97316;
    margin-bottom: 32px;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.login-btn:hover {
    transform: translateY(-2px);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================================================= */
/* LANDING PAGE */
/* ========================================================================= */

.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.landing-header {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-logo {
    color: white;
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-user {
    color: white;
    display: flex;
    align-items: center;
    gap: 16px;
}

.landing-logout-btn {
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.landing-logout-btn:hover {
    background: rgba(255,255,255,0.3);
}

.landing-content {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.landing-title {
    font-size: 48px;
    font-weight: bold;
    color: white;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.landing-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 60px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1400px;
    width: 100%;
}

.module-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.module-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 20px;
}

.module-icon.rides {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.module-icon.pricing {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.module-icon.dispatch {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.module-title {
    font-size: 24px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 12px;
}

.module-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

.module-stats {
    display: flex;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #f97316;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

/* ========================================================================= */
/* MODULE PAGES */
/* ========================================================================= */

.app-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
}

.app-header {
    height: 60px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.app-header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.back-btn:hover {
    background: #e5e7eb;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-content {
    flex: 1;
    overflow-y: auto;
}

/* ========================================================================= */
/* UTILITY */
/* ========================================================================= */

.hidden {
    display: none !important;
}

.text-orange {
    color: #f97316;
}

.bg-orange {
    background: #f97316;
}

/* ========================================================================= */
/* STATUS BADGES */
/* ========================================================================= */

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background: #fef3c7;
    color: #f59e0b;
}

.status-assigned {
    background: #dbeafe;
    color: #3b82f6;
}

.status-in_progress {
    background: #e0e7ff;
    color: #6366f1;
}

.status-completed {
    background: #d1fae5;
    color: #10b981;
}

.status-cancelled {
    background: #fee2e2;
    color: #ef4444;
}
