:root {
    --navbar-height: 56px;
    --primary-color: #2c3e50 !important;
    --bs-primary-rgb: #2c3e50 !important;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #192838;
    min-height: 100vh;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
    opacity: 0.7;
}

a:hover {
    opacity: 1.0;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 9999;
    height: var(--navbar-height);
}

[id] {
    scroll-margin-top: var(--navbar-height);
}

.logo-style {
    filter: brightness(0) invert(1);
    position: relative;
    top: -2px;
    height: 24px;
    opacity: 0.85;
}

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        width: 1480px;
        max-width: 1480px;
    }
}

.bg-dark{
    background-color: #192838 !important;
}

.bg-primary {
    background-color: #2c3e50 !important;
}

.user-info {
    font-size: 0.9rem;
    position: relative;
    padding-right: 0;
    top: 10px;
}

.user-role {
    position: absolute;
    right: 0;
    top: 0;
    transform: translateY(-50%);
    font-size: 0.775em;
    color: white;
    border-bottom: 1px dashed silver;
    opacity: 0.725;
}

.navbar-brand {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, .85);
}

.hero-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    padding: 1rem;
}

.display-4 {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.feature-box {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(52, 152, 219, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #219653);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(39, 174, 96, 0.3);
}

.btn-outline-zakaz {
    border: 2px solid #c21919;
    background: #c21919;
    color: #FFFFFF;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-zakaz:hover {
    background: #e54343;
    color: white;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

footer {
    background: rgba(44, 62, 80, 0.9);
    color: white;
    margin-top: 4rem;
    padding: 2rem 0 1.5rem;
}

.user-welcome {
    color: white;
    padding: 0.5rem 0.5rem 0.5rem 0;
    border-radius: 25px;
}

.stats-counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stats-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.system-card {
    /*transition: transform 0.2s, box-shadow 0.2s;*/
    border: 1px solid #e9ecef;
}

.system-card:hover {
    /*transform: translateY(-2px);*/
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.status-item {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 0.25rem;
}

.alert-auto-close {
    animation: fadeOut 5s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; display: none; }
}

/* Адаптивность */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0 10px;
    }
    
    .system-card .btn-group {
        flex-direction: column;
    }
    
    .system-card .btn {
        margin-bottom: 5px;
    }
}

/* Индикаторы статуса */
.status-online { color: #28a745; }
.status-offline { color: #dc3545; }
.status-warning { color: #ffc107; }

/* Анимации */
.fade-in {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.feature-icon.big-icon {
    font-size: 8rem;
}

/* ============================================
   Login page styles
   ============================================ */

/* Gradient background for login page */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Login card styles */
.login-card {
    border-radius: 15px;
    border: none;
}

/* Button hover effect */
.login-card .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    transition: all 0.3s;
}

.login-card .btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

    
#zakazForm {
    margin-top: 40px;
    animation: fadeInUp 0.6s ease-out;
}

.zakaz-form-wrapper {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

/* Декоративный фон */
.zakaz-form-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(13,110,253,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.zakaz-form-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #00d4ff, #0d6efd);
    background-size: 200% 100%;
    animation: gradientMove 3s ease-in-out infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Заголовок формы */
.zakaz-form-header {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

.zakaz-form-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(13,110,253,0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.zakaz-form-title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.zakaz-form-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    margin-bottom: 0;
}

/* Поля формы */
.form-group {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.zakaz-label {
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    font-size: 17px;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.zakaz-label i {
    margin-right: 8px;
    color: #0d6efd;
}

.zakaz-input,
.zakaz-textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    outline: none;
}

.zakaz-input:focus,
.zakaz-textarea:focus {
    background: rgba(255,255,255,0.08);
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13,110,253,0.15);
}

.zakaz-input::placeholder,
.zakaz-textarea::placeholder {
    color: rgba(255,255,255,0.3);
}

.zakaz-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Кнопка отправки */
.zakaz-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 30px rgba(13,110,253,0.3);
}

.zakaz-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(13,110,253,0.4);
}

.zakaz-submit-btn:active {
    transform: translateY(0);
}

.zakaz-submit-btn i {
    margin-right: 10px;
}

.zakaz-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Сообщения в форме */
#formMessage {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
#formMessage .alert {
    border-radius: 12px;
    padding: 15px 20px;
    font-weight: 500;
}
#formMessage .alert-success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}
#formMessage .alert-danger {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

/* Соглашение */
.zakaz-agreement {
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.zakaz-agreement i {
    margin-right: 6px;
    color: #0d6efd;
}

/* Анимация появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .zakaz-form-wrapper {
        padding: 25px 20px;
    }
    .zakaz-form-title {
        font-size: 22px;
    }
    .zakaz-form-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
    .zakaz-submit-btn {
        font-size: 16px;
        padding: 14px;
    }
}

.btn-250 {
    width: 250px;
}