/* 
 * Measurement-specific styles
 * Extends the main style.css with measurement-specific components
 */

/* Measurement Cards */
.metric-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1rem;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.metric-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.metric-card h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.metric-card p {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/* Measurement Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

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

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

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

/* Progress Bar Styling */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e5e7eb;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
    transition: width 0.6s ease;
}

/* Loading Animation */
.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* Measurement Form Styling */
.measurement-form .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.measurement-form .form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Alert Styling */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-left: 4px solid #22c55e;
}

/* Button Enhancements */
.btn-measurement {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-measurement:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    color: white;
}

.btn-measurement:active {
    transform: translateY(0);
}

/* Card Enhancements */
.measurement-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.measurement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.measurement-card .card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
}

.measurement-card .card-body {
    padding: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .metric-card h3 {
        font-size: 2rem;
    }
    
    .metric-card {
        padding: 1rem;
    }
    
    .btn-measurement {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .measurement-card {
        background-color: #1f2937;
        color: #f9fafb;
    }
    
    .measurement-card .card-header {
        background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
        border-bottom-color: #4b5563;
    }
    
    .alert-info {
        background-color: #1e3a8a;
        color: #dbeafe;
    }
    
    .alert-warning {
        background-color: #92400e;
        color: #fef3c7;
    }
    
    .alert-success {
        background-color: #166534;
        color: #dcfce7;
    }
} 