main > .container {
    padding: 70px 15px 20px;
}

.kabinet-default-index {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.application-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.application-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.application-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, #007bff, #00d4ff);
    border-radius: 12px 0 0 12px;
}

.application-item .d-flex {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ced4da;
}

.application-item p {
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px dashed #dee2e6;
    line-height: 1.6;
    color: #495057;
    font-size: 15px;
}

.application-item p:last-of-type {
    border-bottom: none;
}

.application-item p strong {
    display: inline-block;
    min-width: 200px;
    color: #212529;
    font-weight: 600;
}

.application-item img {
    margin-top: 10px;
    border: 3px solid #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.application-item img:hover {
    transform: scale(1.05);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    margin-right: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    width: 200px; /* Фиксированная ширина */
    min-width: 150px; /* Минимальная ширина */
    max-width: 250px; /* Максимальная ширина */
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
}

/* Заголовок над заявками */
.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
}

.page-header h1 {
    color: #212529;
    font-weight: 700;
    font-size: 2.2rem;
    background: linear-gradient(135deg, #007bff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Если нет заявок */
.no-applications {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #ced4da;
}

.no-applications h3 {
    color: #6c757d;
    margin-bottom: 15px;
}

.no-applications p {
    color: #868e96;
    margin-bottom: 25px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .kabinet-default-index {
        padding: 10px;
    }

    .application-item {
        padding: 15px !important;
    }

    .application-item p strong {
        min-width: 150px;
    }

    .btn-sm {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .application-item .d-flex {
        flex-direction: column;
    }

    .application-item .d-flex div {
        margin-bottom: 10px;
    }
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

.application-form {
    font-family: 'Arial', sans-serif;
    color: #333;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.application-form h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 15px;
}

/* Стили для панелей */
.panel-default {
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.panel-heading {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    color: white !important;
    border-bottom: 1px solid #2980b9;
    padding: 12px 15px;
    border-radius: 6px 6px 0 0 !important;
}

.panel-title {
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}

.panel-body {
    padding: 20px;
    background: white;
    border-radius: 0 0 6px 6px;
}

/* Стили для полей формы */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Стили для лейблов */
.control-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

/* Стили для радиокнопок */
.radio-list label {
    display: inline-block;
    margin-right: 20px;
    font-weight: normal;
    cursor: pointer;
}

.radio-list input[type="radio"] {
    margin-right: 5px;
}

/* Стили для файловых полей */
.current-file, .current-files {
    background: #e8f4fc;
    border: 1px solid #3498db;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 5px;
    font-size: 12px;
}

.current-files div {
    margin: 2px 0;
}

/* Стили для кнопки */
.btn-success {
    background: linear-gradient(135deg, #27ae60, #229954);
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
    margin: 30px auto 0;
    min-width: 200px;
}

.btn-success:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

/* Стили для строк */
.row {
    margin-bottom: 15px;
}

/* Стили для обязательных полей (если нужно отметить) */
.required .control-label:after {
    content: " *";
    color: #e74c3c;
}

/* Стили для полей с ошибками */
.has-error .form-control {
    border-color: #e74c3c;
}

.has-error .help-block {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .application-form {
        padding: 15px;
    }

    .col-md-4, .col-md-6, .col-md-12 {
        margin-bottom: 15px;
    }

    .btn-success {
        width: 100%;
        min-width: auto;
    }
}

select.form-control {
    background: white url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 12px center/8px 10px;
    appearance: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

input[type="file"] {
    padding: 6px;
    background: #f8f9fa;
    border: 1px dashed #bdc3c7;
    border-radius: 4px;
    width: 100%;
}

input[type="file"]:hover {
    border-color: #3498db;
    background: #e8f4fc;
}

.form-control, .btn, .panel {
    transition: all 0.3s ease;
}


input[data-mask] {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.reg {
    background: linear-gradient(135deg, #596bbe 0%, #4c69d3 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-family: 'Arial', sans-serif;
}

.reg .col-lg-5 {
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.zagolovok {
    text-align: center;
    margin-bottom: 30px;
}

.zagolovok h2 {
    color: #2c3e50;
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 10px;
    position: relative;
}

.zagolovok h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 2px;
}


.form-horizontal {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    height: auto;
}

.form-control:focus {
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.15);
    transform: translateY(-1px);
}


input[data-mask] {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    font-weight: 500;
}


.form-create-user {
    text-align: center;
    margin-top: 30px;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: white;
    display: block;
    width: 100%;
    margin-bottom: 20px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #2573a7);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

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

.form-create-user a {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
}

.form-create-user a:hover {
    color: #2980b9;
    background: #f8f9fa;
    text-decoration: underline;
}

/* Стили для полей с ошибками */
.has-error .form-control {
    border-color: #e74c3c;
    background: #fdf2f2;
}

.has-error .help-block {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

.has-error .form-control:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.15);
}

/* Стили для успешной валидации */
.has-success .form-control {
    border-color: #27ae60;
    background: #f2fdf6;
}

.has-success .form-control:focus {
    border-color: #27ae60;
    box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.15);
}


.form-group {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
.form-group:nth-child(6) { animation-delay: 0.6s; }
.form-group:nth-child(7) { animation-delay: 0.7s; }

/* Адаптивность */
@media (max-width: 768px) {
    .reg {
        padding: 15px;
    }

    .reg .col-lg-5 {
        padding: 30px 20px;
        margin: 10px;
    }

    .zagolovok h2 {
        font-size: 24px;
    }

    .btn-primary {
        padding: 10px 30px;
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .reg .col-lg-5 {
        padding: 25px 15px;
    }

    .form-control {
        padding: 10px 12px;
        font-size: 13px;
    }

    .zagolovok h2 {
        font-size: 22px;
    }
}

.form-control::placeholder {
    color: #adb5bd;
    font-size: 13px;
}

input[type="password"] {
    letter-spacing: 1px;
    font-family: 'Arial', sans-serif;
}


.reg .col-lg-5:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.site-login {
    max-width: 450px;
    margin: 0 auto;
    padding: 40px 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
    border: 1px solid #e9ecef;
}

.site-login h1 {
    color: #2c3e50;
    text-align: center;
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 10px;
    position: relative;
}

.site-login h1:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 2px;
}

.site-login p {
    text-align: center;
    color: #6c757d;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.5;
}

/* Стили для формы */
#login-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    width: 100%;
    height: auto;
}

.form-control:focus {
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.15);
    transform: translateY(-1px);
}


.custom-control {
    padding-left: 0;
    margin-bottom: 20px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
}

.custom-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.custom-checkbox input[type="checkbox"]:checked {
    background-color: #3498db;
    border-color: #3498db;
}

.custom-checkbox input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Стили для кнопки входа */
.form-group:last-of-type {
    margin-bottom: 0;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: white;
    width: 100%;
    margin-top: 10px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #2573a7);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

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

/* Стили для ошибок валидации */
.invalid-feedback {
    display: block;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

.has-error .form-control {
    border-color: #e74c3c;
    background: #fdf2f2;
}

.has-error .form-control:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.15);
}

/* Стили для успешной валидации */
.has-success .form-control {
    border-color: #27ae60;
    background: #f2fdf6;
}

.has-success .form-control:focus {
    border-color: #27ae60;
    box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.15);
}

/* Анимации */
.form-group {
    animation: slideInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Задержки для анимаций полей */
.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }

/* Стили для placeholder */
.form-control::placeholder {
    color: #adb5bd;
    font-size: 13px;
}

/* Стили для поля пароля */
input[type="password"] {
    letter-spacing: 1px;
    font-family: 'Arial', sans-serif;
}

/* Дополнительные ссылки (если добавятся) */
.login-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.login-links a {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0 10px;
    padding: 5px 10px;
    border-radius: 4px;
}

.login-links a:hover {
    color: #2980b9;
    background: #f8f9fa;
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .site-login {
        margin: 20px;
        padding: 30px 20px;
    }

    .site-login h1 {
        font-size: 28px;
    }

    .btn-primary {
        padding: 10px 30px;
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .site-login {
        margin: 15px;
        padding: 25px 15px;
    }

    .site-login h1 {
        font-size: 24px;
    }

    .form-control {
        padding: 10px 12px;
        font-size: 13px;
    }

    .site-login p {
        font-size: 14px;
    }
}

/* Эффект при загрузке */
.site-login {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-checkbox input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: white;
}

.custom-checkbox input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}