:root {
    --primary-color: #1b4f72;
    --primary-hover: #154360;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #c0392b;
    --info-color: #2980b9;
    --bg-light: #f4f6f9;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body {
    background-color: var(--bg-light);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    color: #2c3e50;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

.navbar-custom {
    background: linear-gradient(135deg, #1b4f72 0%, #2c3e50 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.card-custom {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    background: #ffffff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-custom:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Карточка авто в очереди */
.vehicle-card {
    border-left: 6px solid #95a5a6;
    border-radius: 10px;
    background: #ffffff;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.vehicle-card.status-waiting {
    border-left-color: #3498db;
}

.vehicle-card.status-in_transit {
    border-left-color: #f39c12;
    background: #fffdf5;
}

.vehicle-card.status-delayed {
    border-left-color: #e74c3c;
    background: #fff5f5;
    animation: pulseBorder 2s infinite;
}

.vehicle-card.status-lab_checking {
    border-left-color: #9b59b6;
}

.vehicle-card.status-lab_approved {
    border-left-color: #27ae60;
    background: #f6fdf8;
}

.vehicle-card.status-lab_rejected {
    border-left-color: #e74c3c;
    background: #fdf6f6;
}

@keyframes pulseBorder {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* Большие сенсорные кнопки */
.btn-touch-lg {
    padding: 16px 24px;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.15s ease;
}

.btn-touch-lg:active {
    transform: scale(0.97);
}

.btn-call {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    font-weight: 600;
    border: none;
}

.btn-call:hover {
    background: linear-gradient(135deg, #219653 0%, #27ae60 100%);
    color: white;
}

.btn-no-answer {
    background: #e74c3c;
    color: white;
    font-weight: 600;
    border: none;
}

.btn-no-answer:hover {
    background: #c0392b;
    color: white;
}

/* Баннер тревоги */
.emergency-banner {
    background: linear-gradient(90deg, #c0392b, #e74c3c);
    color: white;
    padding: 12px 20px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.4);
    animation: flashEmergency 1.5s infinite;
}

@keyframes flashEmergency {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* Значки культур */
.badge-seed {
    background-color: #f1c40f;
    color: #333;
    font-weight: 600;
}

.badge-meal {
    background-color: #e67e22;
    color: white;
    font-weight: 600;
}

.badge-husk {
    background-color: #8e44ad;
    color: white;
    font-weight: 600;
}

/* Индикатор статуса лаборатории */
.lab-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.lab-status-indicator.ready {
    background-color: #e8f8f5;
    color: #27ae60;
    border: 1px solid #a3e4d7;
}

.lab-status-indicator.busy {
    background-color: #fdf2e9;
    color: #d35400;
    border: 1px solid #f5cba7;
}

/* Мобильный экран лаборатории */
.lab-screen {
    max-width: 600px;
    margin: 0 auto;
}

.lab-btn-ok {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    min-height: 90px;
}

.lab-btn-recheck {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
    min-height: 90px;
}
