/* Основные стили */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --light-bg: #ecf0f1;
    --dark-text: #2c3e50;
    --border-radius: 8px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: var(--dark-text);
}

/* Шапка */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), #34495e) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Карточки */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
}

    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    }

.card-header {
    background-color: white;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

/* Кнопки */
.btn {
    border-radius: var(--border-radius);
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    border: none;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #2980b9, var(--secondary-color));
        transform: scale(1.02);
    }

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #219a52);
    border: none;
}

.btn-outline-primary, .btn-outline-success, .btn-outline-info, .btn-outline-warning, .btn-outline-secondary {
    border-width: 2px;
}

/* Таблицы */
.table {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

    .table thead th {
        background: var(--primary-color);
        color: white;
        font-weight: 500;
        border: none;
    }

.table-hover tbody tr:hover {
    background-color: var(--light-bg);
}

/* Формы */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    padding: 10px 15px;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    }

.form-label {
    font-weight: 500;
    color: var(--dark-text);
}

/* Алерты */
.alert {
    border-radius: var(--border-radius);
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Бейджи */
.badge {
    padding: 6px 10px;
    border-radius: 20px;
    font-weight: 500;
}

    .badge.bg-success {
        background: linear-gradient(135deg, var(--success-color), #219a52) !important;
    }

    .badge.bg-warning {
        background: linear-gradient(135deg, var(--warning-color), #e67e22) !important;
        color: white !important;
    }

    .badge.bg-primary {
        background: linear-gradient(135deg, var(--secondary-color), #2980b9) !important;
    }

/* Главная страница */
.display-4 {
    color: var(--primary-color);
    font-weight: 700;
}

.lead {
    color: #7f8c8d;
}

/* Футер */
footer {
    background: white;
    border-top: 1px solid #eee;
}

/* Дополнительные классы */
.cargo-card {
    border-left: 4px solid var(--secondary-color);
}

.transport-card {
    border-left: 4px solid var(--success-color);
}

.price-tag {
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.city-badge {
    background: var(--light-bg);
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-block;
    margin: 3px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .card {
        margin-bottom: 15px;
    }
}
/* Бренд */
.brand-icon {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    font-weight: bold;
    margin-right: 8px;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

    .navbar-brand:hover .brand-icon {
        background: rgba(255,255,255,0.3);
    }

/* Футер */
.footer {
    background: white;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
}
.badge.bg-secondary {
    background-color: #e9ecef !important;
    color: #495057 !important;
    font-weight: 500;
}

.transport-status {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.status-free {
    background: #d1fae5;
    color: #065f46;
}

.status-busy {
    background: #fee2e2;
    color: #991b1b;
}
.cargo-status {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.cargo-card {
    transition: all 0.3s ease;
}

    .cargo-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    }
/* Бейджи ролей в навбаре */
.navbar .badge {
    font-size: 0.65rem;
    padding: 3px 6px;
    vertical-align: middle;
}

.badge.bg-danger {
    background: #dc3545 !important;
}

.badge.bg-info {
    background: #0dcaf0 !important;
    color: #000 !important;
}

.badge.bg-success {
    background: #198754 !important;
}