/* Field Force Tracking Global Styles */
:root {
    --ff-primary: 220 100% 50%;
    --ff-success: 142 76% 36%;
    --ff-warning: 45 100% 51%;
    --ff-danger: 354 70% 54%;
    --ff-info: 188 78% 41%;
    --ff-light: 210 17% 98%;
    --ff-dark: 210 11% 15%;
    --ff-border: 210 14% 89%;
}

/* Field Force specific form enhancements */
.field-force-form .control-label {
    font-weight: 600;
    color: hsl(var(--ff-dark));
}

.field-force-card {
    border: 1px solid hsl(var(--ff-border));
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.2s ease;
}

.field-force-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Agent status indicators */
.agent-status-active {
    color: hsl(var(--ff-success));
}

.agent-status-inactive {
    color: hsl(210 10% 50%);
}

/* Visit status badges */
.visit-status-planned {
    background-color: hsl(var(--ff-primary));
    color: white;
}

.visit-status-in-progress {
    background-color: hsl(var(--ff-warning));
    color: white;
}

.visit-status-completed {
    background-color: hsl(var(--ff-success));
    color: white;
}

.visit-status-missed {
    background-color: hsl(var(--ff-danger));
    color: white;
}

.visit-status-cancelled {
    background-color: hsl(210 10% 50%);
    color: white;
}

/* Task priority indicators */
.task-priority-low {
    border-left: 4px solid hsl(var(--ff-info));
}

.task-priority-medium {
    border-left: 4px solid hsl(var(--ff-warning));
}

.task-priority-high {
    border-left: 4px solid hsl(var(--ff-danger));
}

.task-priority-urgent {
    border-left: 4px solid hsl(300 100% 50%);
    background-color: hsl(300 100% 98%);
}

/* Location tracking styles */
.location-accuracy-high {
    color: hsl(var(--ff-success));
}

.location-accuracy-medium {
    color: hsl(var(--ff-warning));
}

.location-accuracy-low {
    color: hsl(var(--ff-danger));
}

/* Map container styles */
.field-force-map {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Custom button styles */
.btn-field-force {
    background: linear-gradient(135deg, hsl(var(--ff-primary)), hsl(220 100% 60%));
    border: none;
    color: white;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-field-force:hover {
    background: linear-gradient(135deg, hsl(220 100% 45%), hsl(220 100% 55%));
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 123, 255, 0.3);
}

/* Dashboard specific styles */
.dashboard-widget {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid hsl(var(--ff-border));
    margin-bottom: 1.5rem;
}

.dashboard-metric {
    text-align: center;
    padding: 1rem;
}

.dashboard-metric .metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--ff-primary));
    margin: 0;
}

.dashboard-metric .metric-label {
    color: hsl(210 10% 50%);
    font-weight: 500;
    margin: 0;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .field-force-card {
        margin-bottom: 1rem;
    }
    
    .dashboard-metric .metric-value {
        font-size: 2rem;
    }
    
    .btn-field-force {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Custom form field styling */
.field-force-form .form-section {
    background: hsl(var(--ff-light));
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid hsl(var(--ff-border));
}

.field-force-form .form-section .section-head {
    font-weight: 600;
    color: hsl(var(--ff-dark));
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid hsl(var(--ff-border));
}

/* Route optimization styles */
.route-optimization .route-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid hsl(var(--ff-border));
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    background: white;
}

.route-optimization .route-number {
    background: hsl(var(--ff-primary));
    color: white;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
}

.route-optimization .location-name {
    flex: 1;
    font-weight: 500;
}

.route-optimization .scheduled-time {
    color: hsl(210 10% 50%);
    font-size: 0.875rem;
}

/* Custom animations */
@keyframes fieldforce-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.ff-pulse {
    animation: fieldforce-pulse 2s infinite;
}

/* Loading states */
.ff-loading {
    position: relative;
    overflow: hidden;
}

.ff-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: ff-shimmer 1.5s infinite;
}

@keyframes ff-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

