/* ============================================
   DRIVER DASHBOARD
   ============================================ */

.dt-driver-dashboard {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}


/* ============================================
   HEADER
   ============================================ */

.dt-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2f6;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.dt-dashboard-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dt-user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    flex-shrink: 0;
}

.dt-user-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #0f172a;
}

.dt-user-meta {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.dt-user-meta i {
    color: #94a3b8;
}

.dt-user-separator {
    color: #cbd5e1;
}

.dt-dashboard-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dt-btn-secondary {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-family: inherit;
}

.dt-btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}


/* ============================================
   BUTTONS
   ============================================ */

.dt-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    text-decoration: none !important;
}

.dt-btn-primary {
    background: #2563eb;
    color: #fff !important;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-family: inherit;
    text-decoration: none !important;
}

.dt-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.dt-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.dt-btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.2s ease;
    text-decoration: none;
}

.dt-btn-edit {
    background: #e8f0fe;
    color: #1d4ed8;
}

.dt-btn-edit:hover {
    background: #dbeafe;
}

.dt-btn-delete {
    background: #fee2e2;
    color: #dc2626;
}

.dt-btn-delete:hover {
    background: #fecaca;
}

.dt-btn-mark-read {
    background: #e8f0fe;
    color: #1d4ed8;
}

.dt-btn-mark-read:hover {
    background: #dbeafe;
}

.dt-btn-view {
    background: #e8f0fe !important;
    color: #1d4ed8 !important;
}

.dt-btn-view:hover {
    background: #dbeafe !important;
}


/* ============================================
   STATS
   ============================================ */

.dt-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.dt-stat-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 22px;
    border: 1px solid #eef2f6;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.dt-stat-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

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

.dt-stat-content {
    display: flex;
    flex-direction: column;
}

.dt-stat-number {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}

.dt-stat-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}


/* ============================================
   TABS
   ============================================ */

.dt-dashboard-tabs {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.dt-tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    position: relative;
}

.dt-tab-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #0f172a;
}

.dt-tab-btn.active {
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dt-tab-badge {
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

.dt-tab-content {
    display: none;
}

.dt-tab-content.active {
    display: block;
    animation: dtTabFadeIn 0.3s ease;
}

@keyframes dtTabFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================
   ROUTES
   ============================================ */

.dt-dashboard-routes {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    overflow: hidden;
}

.dt-routes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eef2f6;
    flex-wrap: wrap;
    gap: 12px;
}

.dt-routes-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}

.dt-filter-select {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #f8fafc;
    color: #0f172a;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.dt-filter-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dt-routes-grid {
    padding: 16px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dt-route-card {
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 16px 20px;
    background: #fafbfc;
    transition: all 0.3s ease;
}

.dt-route-card:hover {
    border-color: #d1d9e6;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dt-route-card.upcoming {
    border-left: 4px solid #2563eb;
}

.dt-route-card.past {
    border-left: 4px solid #94a3b8;
    opacity: 0.8;
}

.dt-route-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.dt-route-route {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

.dt-route-arrow {
    color: #94a3b8;
    font-size: 12px;
}

.dt-route-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-upcoming {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-past {
    background: #e2e8f0;
    color: #64748b;
}

.dt-route-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.dt-route-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #475569;
}

.dt-route-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dt-route-meta i {
    color: #94a3b8;
    font-size: 13px;
}

.dt-route-price {
    font-size: 18px;
    font-weight: 700;
    color: #2563eb;
}

.dt-route-card-footer {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2f6;
}


/* ============================================
   CONTACT REQUESTS
   ============================================ */

.dt-dashboard-requests {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    overflow: hidden;
}

.dt-requests-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eef2f6;
    flex-wrap: wrap;
    gap: 12px;
}

.dt-requests-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dt-requests-title i {
    color: #2563eb;
}

.dt-requests-grid {
    padding: 16px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dt-request-card {
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 18px 20px;
    background: #fafbfc;
    transition: all 0.3s ease;
}

.dt-request-card:hover {
    border-color: #d1d9e6;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dt-request-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.dt-request-sender {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dt-request-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

.dt-request-sender-info h4 {
    margin: 0 0 2px 0;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.dt-request-sender-info p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.dt-request-sender-info p i {
    color: #94a3b8;
    font-size: 12px;
}

.dt-request-separator {
    color: #cbd5e1;
    margin: 0 2px;
}

.dt-request-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

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

.status-sent {
    background: #dbeafe;
    color: #1e40af;
}

.status-read {
    background: #d1fae5;
    color: #065f46;
}

.status-replied {
    background: #a7f3d0;
    color: #047857;
}

.status-failed {
    background: #fee2e2;
    color: #991b1b;
}

.dt-request-card-body {
    margin-bottom: 12px;
}

.dt-request-route {
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.dt-request-route i {
    color: #94a3b8;
}

.dt-request-date {
    font-weight: 400;
    color: #64748b;
    font-size: 13px;
}

.dt-request-message {
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid #2563eb;
}

.dt-request-message p {
    margin: 0;
    font-size: 14px;
    color: #1e293b;
    line-height: 1.6;
    white-space: pre-wrap;
}

.dt-request-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #eef2f6;
}

.dt-request-time {
    font-size: 13px;
    color: #94a3b8;
}

.dt-request-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}


/* ============================================
   EMPTY STATE
   ============================================ */

.dt-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.dt-empty-icon {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.dt-empty-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.dt-empty-text {
    color: #64748b;
    font-size: 16px;
    margin: 0 0 24px 0;
}


/* ============================================
   PROFILE TAB
   ============================================ */

.dt-profile-section {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    overflow: hidden;
    padding: 24px;
}

.dt-profile-header {
    margin-bottom: 30px;
}

.dt-profile-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.dt-profile-title i {
    color: #2563eb;
    margin-right: 10px;
}

.dt-profile-subtitle {
    color: #64748b;
    font-size: 0.95rem;
}

.dt-profile-form {
    /* max-width: 800px; */
}

.dt-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.dt-form-group {
    display: flex;
    flex-direction: column;
}

.dt-form-group label {
    font-weight: 500;
    color: #334155;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.dt-form-group label i {
    width: 20px;
    color: #64748b;
}

.dt-required {
    color: #ef4444;
}

.dt-input {
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background: #f8fafc;
}

.dt-input:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dt-input:read-only {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

.dt-form-hint {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 4px;
}

.dt-profile-divider {
    display: flex;
    align-items: center;
    margin: 30px 0 25px;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.dt-profile-divider::before,
.dt-profile-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.dt-profile-divider::before {
    margin-right: 15px;
}

.dt-profile-divider::after {
    margin-left: 15px;
}

.dt-password-strength {
    margin-top: 6px;
    font-size: 0.85rem;
    min-height: 22px;
}

.dt-password-strength.weak {
    color: #ef4444;
}

.dt-password-strength.medium {
    color: #f59e0b;
}

.dt-password-strength.strong {
    color: #22c55e;
}

.dt-form-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.dt-status-message {
    font-size: 0.95rem;
}

.dt-status-message.success {
    color: #22c55e;
}

.dt-status-message.error {
    color: #ef4444;
}

.dt-status-message.loading {
    color: #2563eb;
}


/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.dt-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.dt-toast-success {
    background: #22c55e;
}

.dt-toast-info {
    background: #3b82f6;
}

.dt-toast-error {
    background: #ef4444;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}


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

@media (max-width: 768px) {
    .dt-driver-dashboard {
        padding: 0 12px;
        margin: 20px auto;
    }

    .dt-dashboard-header {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 16px;
    }

    .dt-dashboard-user {
        flex-direction: column;
        text-align: center;
    }

    .dt-user-meta {
        justify-content: center;
        flex-direction: column;
        gap: 4px;
    }

    .dt-user-separator {
        display: none;
    }

    .dt-dashboard-actions {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .dt-dashboard-actions .dt-btn {
        justify-content: center;
    }

    .dt-dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .dt-stat-card {
        padding: 16px;
        flex-direction: column;
        text-align: center;
    }

    .dt-stat-number {
        font-size: 22px;
    }

    .dt-dashboard-tabs {
        flex-direction: column;
        gap: 4px;
    }

    .dt-tab-btn {
        justify-content: center;
        padding: 10px 16px;
        font-size: 13px;
    }

    .dt-routes-header,
    .dt-requests-header {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px;
    }

    .dt-routes-grid,
    .dt-requests-grid {
        padding: 12px 16px 16px;
    }

    .dt-route-card,
    .dt-request-card {
        padding: 14px 16px;
    }

    .dt-route-card-header,
    .dt-request-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dt-route-card-body {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .dt-route-meta {
        flex-direction: column;
        gap: 6px;
        width: 100%;
    }

    .dt-route-price {
        font-size: 16px;
        align-self: flex-start;
    }

    .dt-route-card-footer,
    .dt-request-card-footer {
        flex-direction: column;
        width: 100%;
    }

    .dt-route-card-footer .dt-btn,
    .dt-request-actions .dt-btn {
        justify-content: center;
        width: 100%;
    }

    .dt-request-sender {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .dt-request-sender-info p {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .dt-request-separator {
        display: none;
    }

    .dt-request-status {
        align-self: flex-start;
    }

    .dt-empty-icon {
        font-size: 48px;
    }

    .dt-empty-title {
        font-size: 18px;
    }

    .dt-request-message {
        font-size: 13px;
        padding: 10px 14px;
    }

    .dt-form-row {
        grid-template-columns: 1fr;
    }

    .dt-form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .dt-form-actions .dt-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .dt-dashboard-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .dt-stat-card {
        padding: 14px;
    }

    .dt-stat-number {
        font-size: 20px;
    }

    .dt-stat-label {
        font-size: 12px;
    }

    .dt-route-route {
        font-size: 14px;
    }

    .dt-route-meta {
        font-size: 13px;
    }

    .dt-request-route {
        font-size: 13px;
    }
}