* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f5f7fa;
    overflow-x: hidden;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Left Sidebar */
.sidebar {
    width: 260px;
    background: #ffffff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-name-sidebar {
    font-size: 24px;
    font-weight: bold;
    color: #FF0000;
    letter-spacing: 1px;
}

.sidebar-nav {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-grow: 1;
}

.logout-nav {
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
}

/* Logout Modal Styles */
.logout-modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.logout-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: #f0f2f5;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    margin: 0 auto;
}

.logout-title {
    font-weight: 700;
    color: #333;
}

.logout-text {
    color: #666;
    font-size: 15px;
}

.btn-text {
    background: none;
    border: none;
    padding: 0;
}

.btn-text:hover {
    text-decoration: underline;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 15px;
}

.nav-item i {
    width: 20px;
    font-size: 18px;
}

.nav-item:hover {
    background: #f8f9fa;
    color: #4A90E2;
}

.nav-item.active {
    background: #4A90E2;
    color: #ffffff;
    border-left: 4px solid #357ABD;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    margin-right: 320px;
    padding: 30px;
    min-height: 100vh;
    transition: all 0.3s;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 1rem;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.header-left {
    flex: 1;
}

.welcome-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.welcome-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.notification-icon:hover {
    background: #e9ecef;
}

.notification-icon i {
    font-size: 18px;
    color: #666;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #FF0000;
    color: white;
    font-size: 11px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background 0.3s;
}

.user-profile-header:hover {
    background: #f8f9fa;
    text-decoration: none;
}

.user-avatar-header {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info-header {
    display: flex;
    flex-direction: column;
}

.user-name-header {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.user-status-header {
    font-size: 12px;
    color: #4A90E2;
    font-weight: 500;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.calendar-icon {
    background: #E3F2FD;
    color: #4A90E2;
}

.key-icon {
    background: #E8F5E9;
    color: #10B981;
}

.wallet-icon {
    background: #FFF3E0;
    color: #F97316;
}

.card-content {
    flex: 1;
}

.card-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.card-value {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.card-change {
    font-size: 12px;
    font-weight: 500;
}

.card-change.positive {
    color: #10B981;
}

.card-change.neutral {
    color: #666;
}

/* Booking History Section */
.booking-history-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.section-header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-filter {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: white;
    cursor: pointer;
}

.btn-new-booking {
    padding: 8px 20px;
    font-weight: 600;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Booking Table */
.booking-table {
    width: 100%;
    border-collapse: collapse;
}

.booking-table thead {
    background: #f8f9fa;
}

.booking-table th {
    padding: 15px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e0e0e0;
}

.booking-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
}

.booking-table tbody tr:hover {
    background: #f8f9fa;
}

.car-info-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.car-icon {
    font-size: 24px;
    color: #4A90E2;
}

.car-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.car-type {
    font-size: 12px;
    color: #666;
}

.amount {
    font-weight: 600;
    color: #333;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-active {
    background: #4A90E2;
    color: white;
}

.status-completed {
    background: #10B981;
    color: white;
}

.status-cancelled {
    background: #EF4444;
    color: white;
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.table-info {
    font-size: 14px;
    color: #666;
}

.pagination {
    display: flex;
    gap: 8px;
}

.page-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #4A90E2;
    color: #4A90E2;
}

.page-btn.active {
    background: #4A90E2;
    color: white;
    border-color: #4A90E2;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Right Sidebar */
.right-sidebar {
    width: 320px;
    padding: 30px 20px;
    background: #f5f7fa;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* Profile Overview */
.profile-overview {
    text-align: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #4A90E2;
}

.profile-name {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.profile-email {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.profile-badge {
    display: inline-block;
    padding: 5px 15px;
    background: #E3F2FD;
    color: #4A90E2;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

.profile-details {
    text-align: left;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.detail-label {
    color: #666;
}

.detail-value {
    color: #333;
    font-weight: 500;
}

.detail-value.verified {
    color: #10B981;
    font-weight: 600;
}

.btn-edit-profile {
    width: 100%;
    padding: 10px;
    font-weight: 600;
    border-radius: 6px;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.action-btn.btn-primary {
    background: #4A90E2;
    color: white;
}

.action-btn.btn-primary:hover {
    background: #357ABD;
}

.action-btn.btn-outline {
    background: white;
    color: #333;
    border: 1px solid #ddd;
}

.action-btn.btn-outline:hover {
    background: #f8f9fa;
    border-color: #4A90E2;
    color: #4A90E2;
}

/* Recent Activity */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.activity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

.dot-blue {
    background: #4A90E2;
}

.dot-green {
    background: #10B981;
}

.dot-orange {
    background: #F97316;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    font-weight: 500;
}

.activity-time {
    font-size: 12px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .right-sidebar {
        width: 280px;
    }
}

@media (max-width: 1200px) {
    .right-sidebar {
        display: none;
    }

    .main-content {
        margin-right: 0;
    }
}

@media (max-width: 992px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 20px;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }

    .sidebar-header {
        padding: 20px 10px;
    }

    .logo-container {
        flex-direction: column;
        align-items: center;
    }

    .brand-name-sidebar {
        display: none;
    }

    .sidebar-logo {
        width: 40px;
        height: 40px;
    }

    .nav-item span {
        display: none;
    }

    .nav-item {
        justify-content: center;
        padding: 15px;
    }

    .main-content {
        margin-left: 70px;
        padding: 20px 15px;
    }

    .welcome-title {
        font-size: 22px;
    }

    .section-header-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .controls {
        width: 100%;
        flex-direction: column;
    }

    .status-filter,
    .btn-new-booking {
        width: 100%;
    }

    .booking-table {
        font-size: 12px;
    }

    .booking-table th,
    .booking-table td {
        padding: 10px 8px;
    }

    .table-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .dashboard-header {
        padding-bottom: 15px;
    }

    .user-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .user-info-header {
        align-items: center;
    }

    .summary-card {
        padding: 20px;
    }

    .card-value {
        font-size: 24px;
    }

    .booking-table {
        display: block;
        overflow-x: auto;
    }
}

/* Premium Status Modals (Success/Failure) */
.status-modal-content {
    border-radius: 28px;
    border: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    padding: 20px;
}

.status-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background: white;
}

.success-modal-ui .status-icon-container {
    color: #10B981;
    border: 3px solid #10B981;
}

.failed-modal-ui .status-icon-container {
    color: #EF4444;
    border: 3px solid #EF4444;
}

.status-title {
    font-weight: 800;
    font-size: 26px;
    margin-bottom: 10px;
    color: #333;
}

.status-message {
    color: #666;
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.btn-status {
    padding: 12px 30px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s;
    min-width: 140px;
    border: none;
}

.btn-status-success {
    background: #10B981;
    color: white;
}

.btn-status-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.btn-status-failed {
    background: #EF4444;
    color: white;
}

.btn-status-failed:hover {
    background: #DC2626;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.btn-status-outline {
    background: white;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-status-outline:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

/* Modal Animations */
.modal.fade .status-modal-content {
    transform: scale(0.85);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .status-modal-content {
    transform: scale(1);
}