/* Enhanced Dashboard Styles */

/* Dashboard Container */
.cht-dashboard-enhanced {
    padding: 0;
}

/* Welcome Hero Section */
.cht-welcome-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #e2e8f0;
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    color: #1f2937;
}

.cht-welcome-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cht-welcome-title {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #1f2937;
}

.cht-welcome-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}



/* Alert Cards */
.cht-dashboard-alerts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.cht-alert-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    border-left: 4px solid;
}

.cht-alert-warning {
    background: #FFF3CD;
    border-left-color: #FFC107;
}

.cht-alert-info {
    background: #D1ECF1;
    border-left-color: #17A2B8;
}

.cht-alert-icon {
    font-size: 2rem;
    line-height: 1;
}

.cht-alert-content {
    flex: 1;
}

.cht-alert-content strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: #1a1a1a;
}

.cht-alert-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.cht-alert-action {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.cht-alert-action:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: translateX(3px);
}

/* Next Trip Card */
.cht-next-trip-card {
    display: flex;
    gap: 2rem;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cht-trip-countdown {
    display: flex;
    align-items: center;
}

.cht-countdown-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 25px -5px rgba(102, 126, 234, 0.4);
}

.cht-countdown-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.cht-countdown-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.cht-trip-details {
    flex: 1;
}

.cht-trip-details h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: #6B7280;
    font-weight: 500;
}

.cht-trip-details h3 {
    margin: 0 0 1rem 0;
    font-size: 1.75rem;
    color: #1F2937;
}

.cht-trip-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.cht-trip-meta span {
    font-size: 0.95rem;
    color: #4B5563;
}

.cht-trip-meta strong {
    color: #1F2937;
}

.cht-balance-warning {
    color: #DC2626 !important;
}

.cht-trip-actions {
    display: flex;
    gap: 1rem;
}



/* Main Dashboard Layout */
.cht-dashboard-main {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
}

/* Timeline Styles */
.cht-bookings-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cht-timeline-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.cht-timeline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cht-timeline-marker {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.cht-timeline-marker.cht-status-completed { background: #D1FAE5; }
.cht-timeline-marker.cht-status-pending { background: #FEF3C7; }
.cht-timeline-marker.cht-status-processing { background: #DBEAFE; }
.cht-timeline-marker.cht-status-cancelled { background: #FEE2E2; }

.cht-timeline-content {
    flex: 1;
}

.cht-timeline-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1F2937;
}

.cht-timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 0.5rem;
}

.cht-text-warning {
    color: #DC2626 !important;
    font-weight: 500;
}

/* Message Preview Styles */
.cht-messages-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cht-message-preview {
    padding: 1rem;
    background: #F9FAFB;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    transition: all 0.2s;
}

.cht-message-preview:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
}

.cht-message-preview.cht-unread {
    background: #EFF6FF;
    border-color: #BFDBFE;
}

.cht-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cht-badge-new {
    background: #EF4444;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.cht-message-excerpt {
    font-size: 0.875rem;
    color: #6B7280;
    margin: 0 0 0.5rem 0;
}

.cht-message-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #9CA3AF;
}

/* Quick Actions Grid */
.cht-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.cht-action-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    text-decoration: none;
    color: #4B5563;
    transition: all 0.2s;
    position: relative;
}

.cht-action-item:hover {
    background: white;
    border-color: #9CA3AF;
    transform: translateX(3px);
    color: #1F2937;
}

.cht-action-icon {
    font-size: 1.25rem;
}

.cht-action-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.cht-badge-count {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #EF4444;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

/* Account Info */
.cht-account-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cht-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #F9FAFB;
    border-radius: 6px;
}

.cht-info-label {
    font-size: 0.875rem;
    color: #6B7280;
}

.cht-info-value {
    font-weight: 600;
    color: #1F2937;
}

.cht-highlight-warning {
    background: #FEF3C7;
    border-left: 3px solid #F59E0B;
}

/* Help Content */
.cht-help-content p {
    margin: 0 0 1rem 0;
    color: #6B7280;
}

.cht-help-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.cht-contact-info {
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
}

.cht-contact-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

/* Links */
.cht-link-more {
    font-size: 0.875rem;
    color: #6366F1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.cht-link-more:hover {
    color: #4F46E5;
}

.cht-link-inline {
    font-size: 0.875rem;
    color: #6366F1;
    text-decoration: none;
    font-weight: 500;
}

.cht-link-inline:hover {
    text-decoration: underline;
}

/* Empty States */
.cht-empty-mini {
    text-align: center;
    padding: 2rem;
}

.cht-empty-mini p {
    color: #6B7280;
    margin-bottom: 1rem;
}

/* Button Variants */
.cht-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.cht-btn-primary {
    background: #6366F1;
    color: white;
}

.cht-btn-primary:hover {
    background: #4F46E5;
    transform: translateY(-1px);
}

.cht-btn-warning {
    background: #F59E0B;
    color: white;
}

.cht-btn-warning:hover {
    background: #D97706;
}

.cht-btn-outline {
    background: transparent;
    color: #6366F1;
    border: 1px solid #6366F1;
}

.cht-btn-outline:hover {
    background: #6366F1;
    color: white;
}

.cht-btn-sm {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.cht-btn-block {
    width: 100%;
    justify-content: center;
}

/* Card Styles */
.cht-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.cht-card:last-child {
    margin-bottom: 0;
}

.cht-card-header {
    padding: 1.25rem;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cht-card-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1F2937;
}

.cht-card-content {
    padding: 1.25rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .cht-dashboard-main {
        grid-template-columns: 1fr;
    }
    
    .cht-dashboard-right {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .cht-welcome-hero {
        padding: 2rem 1.5rem;
    }
    
    .cht-welcome-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .cht-welcome-title {
        font-size: 1.5rem;
    }
    
    .cht-dashboard-alerts {
        grid-template-columns: 1fr;
    }
    
    .cht-next-trip-card {
        flex-direction: column;
        text-align: center;
    }
    
    .cht-trip-countdown {
        justify-content: center;
    }
    
    .cht-quick-actions {
        grid-template-columns: 1fr;
    }
}
