/* ====================================
   DASHBOARD STYLES - UBER/YANGO INSPIRED
   ==================================== */

.dashboard-body {
    background: #f5f5f5;
    margin: 0;
    padding: 0;
}

.dashboard-body .navbar {
    display: none;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    height: 100vh;
    overflow: hidden;
}

/* ====================================
   LEFT SIDEBAR
   ==================================== */

.dashboard-sidebar {
    background: white;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    padding: 2rem 1.5rem;
}

.user-profile-card {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.user-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.user-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: var(--text-dark);
}

.user-role {
    font-size: 0.875rem;
    color: var(--dark-gray);
    margin: 0 0 0.75rem 0;
}

.user-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #fff7ed;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    color: #c2410c;
}

.user-rating i {
    color: #f59e0b;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quick-stat-item {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quick-stat-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.quick-stat-info {
    display: flex;
    flex-direction: column;
}

.quick-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-dark);
}

.quick-stat-label {
    font-size: 0.75rem;
    color: var(--dark-gray);
}

/* Primary Action Button */
.primary-action-container {
    margin-bottom: 2rem;
}

.primary-action-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.primary-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.primary-action-btn i {
    font-size: 1.25rem;
}

/* Sidebar Menu */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    color: var(--dark-gray);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.menu-item:hover {
    background: #f8fafc;
    color: var(--primary-color);
}

.menu-item i {
    width: 20px;
    text-align: center;
    font-size: 1.125rem;
}

.menu-item-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

/* ====================================
   MAIN CONTENT AREA
   ==================================== */

.dashboard-main {
    overflow-y: auto;
    padding: 2rem;
    background: #f5f5f5;
}

/* Active Ride Alert */
.active-ride-alert {
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.active-ride-alert:hover {
    transform: translateY(-2px);
}

.alert-content {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.alert-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.alert-info {
    flex: 1;
}

.alert-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.alert-info p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.875rem;
}

.alert-action .btn-view-ride {
    background: white;
    color: #059669;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.alert-action .btn-view-ride:hover {
    background: #f0fdf4;
}

.alert-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
}

.alert-progress-bar {
    height: 100%;
    background: white;
    transition: width 0.5s ease;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 2rem;
}

.welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
}

.welcome-subtitle {
    font-size: 1.125rem;
    color: var(--dark-gray);
    margin: 0;
}

.weather-widget {
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.weather-widget i {
    color: #f59e0b;
    font-size: 1.5rem;
}

/* Services Grid */
.services-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: var(--text-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.service-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.75rem;
}

.service-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
}

.service-description {
    font-size: 0.875rem;
    color: var(--dark-gray);
    margin: 0 0 1rem 0;
}

.service-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Driver Stats */
.driver-stats-section {
    margin-bottom: 2rem;
}

.driver-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.driver-stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    font-size: 0.875rem;
}

.stat-header i {
    font-size: 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--dark-gray);
}

.stat-change.positive {
    color: var(--success-color);
}

.stat-change i {
    font-size: 0.75rem;
}

/* Recent Activity */
.recent-activity-section {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.see-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
}

.see-all-link:hover {
    text-decoration: underline;
}

.activity-list {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
}

.activity-icon.success { background: var(--success-color); }
.activity-icon.warning { background: var(--warning-color); }
.activity-icon.danger { background: var(--danger-color); }
.activity-icon.info { background: var(--info-color); }
.activity-icon.pending { background: var(--dark-gray); }

.activity-content {
    flex: 1;
}

.activity-route {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-route i {
    color: var(--dark-gray);
    font-size: 0.75rem;
}

.activity-meta {
    font-size: 0.75rem;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-dot {
    color: var(--dark-gray);
}

.activity-status {
    font-weight: 600;
}

.activity-status.status-success { color: var(--success-color); }
.activity-status.status-warning { color: var(--warning-color); }
.activity-status.status-danger { color: var(--danger-color); }
.activity-status.status-info { color: var(--info-color); }

.activity-amount {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.activity-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--dark-gray);
}

.activity-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.activity-empty p {
    margin: 0;
}

/* Promotions */
.promotions-section {
    margin-bottom: 2rem;
}

.promotions-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.promo-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.promo-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.625rem;
    font-weight: 700;
}

.promo-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.promo-card h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}

.promo-card p {
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
}

.promo-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.promo-btn:hover {
    transform: scale(1.05);
}

/* ====================================
   RIGHT PANEL
   ==================================== */

.dashboard-right-panel {
    background: white;
    border-left: 1px solid #e5e7eb;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.map-container-dashboard {
    position: relative;
    height: 300px;
}

#dashboardMap {
    width: 100%;
    height: 100%;
}

.map-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 1000;
}

.map-search-box {
    background: white;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.map-search-box i {
    color: var(--dark-gray);
}

.map-search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.875rem;
}

/* Quick Actions Panel */
.quick-actions-panel {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.panel-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark-gray);
    margin: 0 0 1rem 0;
    letter-spacing: 0.5px;
}

.quick-actions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #f8fafc;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
}

.quick-action-btn:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.quick-action-btn i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

/* Saved Places */
.saved-places-panel {
    padding: 1.5rem;
    flex: 1;
}

.saved-places-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.saved-place-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.saved-place-item:hover {
    background: #f1f5f9;
}

.place-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
}

.place-info {
    flex: 1;
}

.place-name {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.125rem;
}

.place-address {
    display: block;
    font-size: 0.75rem;
    color: var(--dark-gray);
}

/* Dashboard Notifications */
.dashboard-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    min-width: 300px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.dashboard-notification.show {
    transform: translateX(0);
}

.dashboard-notification.success {
    border-left: 4px solid var(--success-color);
}

.dashboard-notification.error {
    border-left: 4px solid var(--danger-color);
}

.dashboard-notification.warning {
    border-left: 4px solid var(--warning-color);
}

.dashboard-notification.info {
    border-left: 4px solid var(--info-color);
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.notification-content i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.dashboard-notification.success .notification-content i { color: var(--success-color); }
.dashboard-notification.error .notification-content i { color: var(--danger-color); }
.dashboard-notification.warning .notification-content i { color: var(--warning-color); }
.dashboard-notification.info .notification-content i { color: var(--info-color); }

.notification-content strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.notification-content p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--dark-gray);
}

/* User location marker */
.user-location-marker {
    position: relative;
}

.user-location-marker .pulse {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.3);
    animation: pulse 2s infinite;
}

.user-location-marker i {
    color: #3b82f6;
    font-size: 12px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media (max-width: 1280px) {
    .dashboard-layout {
        grid-template-columns: 260px 1fr 280px;
    }
}

@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .dashboard-sidebar {
        display: none;
    }

    .dashboard-right-panel {
        display: none;
    }

    .dashboard-main {
        padding: 1rem;
    }

    .dashboard-body .navbar {
        display: block;
    }
}

@media (max-width: 768px) {
    .welcome-title {
        font-size: 1.5rem;
    }

    .services-grid,
    .driver-stats-grid,
    .promotions-carousel {
        grid-template-columns: 1fr;
    }

    .welcome-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
