/* Agent Dashboard Styles */

.agent-dashboard {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    padding: 1rem;
}

/* Welcome Card */
.luxury-welcome-card {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.welcome-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.luxury-title {
    color: #ffd700;
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0;
}

.luxury-subtitle {
    color: #bdc3c7;
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.role-badge.agent {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
}

.luxury-description {
    color: #95a5a6;
    font-size: 0.95rem;
    font-style: italic;
}

.luxury-time-display {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.current-time {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffd700;
}

.current-date {
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* Agent Metrics */
.metric-card {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.4);
}

.metric-card.agent-metric {
    border-left: 4px solid #3498db;
}

.metric-icon {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.85rem;
    color: #bdc3c7;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 0.25rem;
}

.metric-change {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.metric-change.positive {
    color: #27ae60;
}

.metric-change.neutral {
    color: #95a5a6;
}

/* Rides Table */
.agent-rides-table {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
}

.agent-rides-table th {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ffd700;
    font-weight: 600;
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
    border: none;
}

.agent-rides-table td {
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
    border-color: rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.ride-row:hover {
    background: rgba(255, 215, 0, 0.05);
}

.route-info {
    font-size: 0.8rem;
    line-height: 1.3;
}

.route-info div {
    margin-bottom: 0.2rem;
}

.btn-xs {
    padding: 0.15rem 0.4rem;
    font-size: 0.7rem;
    border-radius: 4px;
    margin-bottom: 0.1rem;
}

/* Ride History Timeline */
.ride-history-timeline {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.timeline-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0.2rem;
    border: 2px solid #ffd700;
}

.timeline-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid #3498db;
}

/* Quick Actions Panel */
.card {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
}

.card-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px 10px 0 0 !important;
}

.card-header h5,
.card-header h6 {
    color: #ffd700;
    font-weight: 600;
}

.card-body {
    background: rgba(255, 255, 255, 0.02);
    color: #ecf0f1;
}

/* Communications Panel */
.communications-tabs .nav-pills .nav-link {
    background: rgba(255, 255, 255, 0.05);
    color: #bdc3c7;
    border-radius: 20px;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

.communications-tabs .nav-pills .nav-link.active {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ecf0f1;
    font-size: 0.85rem;
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ffd700;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.2);
    color: #ecf0f1;
}

.form-control::placeholder {
    color: #95a5a6;
}

.form-label {
    color: #bdc3c7;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Recent Messages */
.recent-messages {
    max-height: 200px;
    overflow-y: auto;
}

.message-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border-left: 3px solid #3498db;
}

.message-preview {
    color: #95a5a6;
    font-size: 0.8rem;
    margin: 0.25rem 0;
}

.message-status {
    margin-top: 0.25rem;
}

.badge-xs {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
}

/* Button Styling */
.btn-primary {
    background: linear-gradient(45deg, #3498db, #2980b9);
    border: none;
    border-radius: 6px;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #2980b9, #3498db);
    transform: translateY(-1px);
}

.btn-outline-primary {
    border-color: #3498db;
    color: #3498db;
}

.btn-outline-primary:hover {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

.btn-success {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    border: none;
}

.btn-outline-success {
    border-color: #27ae60;
    color: #27ae60;
}

.btn-outline-success:hover {
    background: #27ae60;
    border-color: #27ae60;
    color: white;
}

.btn-warning {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    border: none;
}

.btn-outline-warning {
    border-color: #f39c12;
    color: #f39c12;
}

.btn-outline-warning:hover {
    background: #f39c12;
    border-color: #f39c12;
    color: white;
}

.btn-danger {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    border: none;
}

.btn-outline-danger {
    border-color: #e74c3c;
    color: #e74c3c;
}

.btn-outline-danger:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

.btn-outline-info {
    border-color: #17a2b8;
    color: #17a2b8;
}

.btn-outline-info:hover {
    background: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

/* Progress Bar */
.progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 8px;
}

.progress-bar {
    background: linear-gradient(45deg, #3498db, #2980b9);
    border-radius: 10px;
}

/* Modal Styling */
.modal-content {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
}

.modal-header {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px 10px 0 0;
}

.modal-title {
    color: #ffd700;
    font-weight: 600;
}

.btn-close {
    filter: invert(1);
}

.modal-body {
    color: #ecf0f1;
}

.modal-footer {
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

/* List Group Styling */
.list-group-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: #ecf0f1;
    margin-bottom: 0.5rem;
    border-radius: 6px;
}

.list-group-item:hover {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.4);
}

/* Notification Toast */
.notification-toast {
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .luxury-title {
        font-size: 1.4rem;
    }
    
    .luxury-subtitle {
        font-size: 1rem;
    }
    
    .metric-card {
        height: 120px;
        padding: 1rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .agent-rides-table {
        font-size: 0.8rem;
    }
    
    .agent-rides-table th,
    .agent-rides-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .btn-xs {
        padding: 0.1rem 0.3rem;
        font-size: 0.65rem;
    }
    
    .route-info {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .agent-dashboard {
        padding: 0.5rem;
    }
    
    .luxury-welcome-card {
        padding: 1rem;
    }
    
    .metric-card {
        height: 100px;
        padding: 0.75rem;
    }
    
    .metric-value {
        font-size: 1.3rem;
    }
    
    .metric-icon {
        font-size: 1.5rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #3498db, #2980b9);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #2980b9, #3498db);
}