/* Book A Bike - Motorcycle Ride-Hailing Application Styles */
/* Modern, Clean & Professional Design */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    /* Primary Brand Colors */
    --primary-color: #FF6B35;
    --primary-dark: #E85A28;
    --primary-light: #FF8C5A;
    
    /* Secondary Colors */
    --secondary-color: #2C3E50;
    --secondary-light: #34495E;
    
    /* Accent Colors */
    --accent-blue: #3498DB;
    --accent-green: #27AE60;
    --accent-yellow: #F39C12;
    --accent-red: #E74C3C;
    
    /* Neutral Colors */
    --dark: #1A1A1A;
    --gray-dark: #4A4A4A;
    --gray-medium: #7A7A7A;
    --gray-light: #DEDEDE;
    --gray-lighter: #F5F5F5;
    --white: #FFFFFF;
    
    /* Status Colors */
    --status-pending: #F39C12;
    --status-success: #27AE60;
    --status-warning: #E67E22;
    --status-danger: #E74C3C;
    --status-info: #3498DB;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.18);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;
}

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

body {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--gray-lighter);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Authentication Pages Layout */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -300px;
    right: -200px;
}

.auth-container::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    bottom: -150px;
    left: -100px;
}

.auth-box {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 50px 40px;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease;
}

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

.auth-logo {
    text-align: center;
    margin-bottom: 35px;
}

.auth-logo h1 {
    font-size: 32px;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-logo .bike-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.auth-logo p {
    color: var(--gray-medium);
    font-size: 14px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition-fast);
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-input::placeholder {
    color: var(--gray-medium);
}

select.form-input {
    cursor: pointer;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-full {
    width: 100%;
}

.btn-secondary {
    background: var(--gray-lighter);
    color: var(--dark);
}

.btn-secondary:hover {
    background: var(--gray-light);
}

.btn-success {
    background: var(--accent-green);
    color: var(--white);
}

.btn-danger {
    background: var(--accent-red);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.auth-footer {
    text-align: center;
    margin-top: 28px;
    color: var(--gray-medium);
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

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

/* Alert Messages */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.alert-warning {
    background: rgba(243, 156, 18, 0.1);
    color: var(--accent-yellow);
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(52, 152, 219, 0.2);
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--gray-lighter);
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: var(--transition-normal);
}

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

.sidebar-logo h2 {
    font-size: 26px;
    color: var(--primary-color);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo .bike-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu ul {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    color: var(--gray-dark);
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: var(--transition-fast);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 107, 53, 0.08);
    color: var(--primary-color);
}

.sidebar-menu a.active::before {
    transform: scaleY(1);
}

.sidebar-menu .menu-icon {
    width: 22px;
    font-size: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 0;
    transition: var(--transition-normal);
}

/* Top Header */
.top-header {
    background: var(--white);
    padding: 20px 32px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left h1 {
    font-size: 24px;
    color: var(--dark);
}

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

.notification-icon {
    position: relative;
    width: 40px;
    height: 40px;
    background: var(--gray-lighter);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.notification-icon:hover {
    background: var(--gray-light);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-red);
    color: var(--white);
    border-radius: var(--radius-full);
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.user-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.user-info p {
    font-size: 12px;
    color: var(--gray-medium);
}

/* Content Area */
.content-area {
    padding: 32px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

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

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}

.stat-icon.primary {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
}

.stat-icon.success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--accent-green);
}

.stat-icon.info {
    background: rgba(52, 152, 219, 0.1);
    color: var(--accent-blue);
}

.stat-icon.warning {
    background: rgba(243, 156, 18, 0.1);
    color: var(--accent-yellow);
}

.stat-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.stat-content p {
    color: var(--gray-medium);
    font-size: 14px;
    font-weight: 500;
}

/* Data Table */
.data-table-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.table-header h3 {
    font-size: 18px;
    color: var(--dark);
}

.table-responsive {
    overflow-x: auto;
}

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

.data-table thead {
    background: var(--gray-lighter);
}

.data-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--gray-light);
    font-size: 14px;
    color: var(--dark);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr {
    transition: var(--transition-fast);
}

.data-table tbody tr:hover {
    background: var(--gray-lighter);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background: rgba(243, 156, 18, 0.15);
    color: var(--status-pending);
}

.status-badge.approved,
.status-badge.available,
.status-badge.completed {
    background: rgba(39, 174, 96, 0.15);
    color: var(--status-success);
}

.status-badge.busy,
.status-badge.in-transit {
    background: rgba(52, 152, 219, 0.15);
    color: var(--status-info);
}

.status-badge.rejected,
.status-badge.cancelled,
.status-badge.suspended {
    background: rgba(231, 76, 60, 0.15);
    color: var(--status-danger);
}

.status-badge.offline {
    background: rgba(122, 122, 122, 0.15);
    color: var(--gray-medium);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    font-size: 14px;
}

.action-btn.view {
    background: rgba(52, 152, 219, 0.1);
    color: var(--accent-blue);
}

.action-btn.edit {
    background: rgba(243, 156, 18, 0.1);
    color: var(--accent-yellow);
}

.action-btn.delete {
    background: rgba(231, 76, 60, 0.1);
    color: var(--accent-red);
}

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

/* Map Container */
#map {
    width: 100%;
    height: 450px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

/* Rider List */
.rider-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.rider-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    cursor: pointer;
}

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

.rider-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.rider-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
}

.rider-info h4 {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 4px;
}

.rider-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-medium);
}

.star-icon {
    color: var(--accent-yellow);
    font-size: 14px;
}

.rider-details {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.detail-label {
    color: var(--gray-medium);
}

.detail-value {
    color: var(--dark);
    font-weight: 500;
}

.distance-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 10px;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .auth-box {
        padding: 35px 25px;
    }
    
    .content-area {
        padding: 20px;
    }
    
    .top-header {
        padding: 16px 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .rider-list {
        grid-template-columns: 1fr;
    }
    
    .table-responsive {
        font-size: 13px;
    }
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--gray-light);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }
