/* ==========================================================================
   СТИЛИ ДЛЯ ПРОСМОТРА ЗАЯВОК - ЦВЕТА СТАТУСОВ
   ========================================================================== */

/* Основной контейнер заявок */
.user-applications-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e8ed;
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

/* Заголовок */
.user-applications-container h3 {
    color: #2a5c8a;
    font-weight: 600;
    font-size: 1.4rem;
    margin: 0 0 20px 0;
    padding: 0 0 15px 0;
    border-bottom: 2px solid #e1e8ed;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-applications-container h3::before {
    content: "📋";
    font-size: 1.2em;
}

/* Сообщение об отсутствии заявок */
.no-applications {
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.no-applications p {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0;
}

/* Список заявок */
.applications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Элемент заявки */
.application-item {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.application-item:hover {
    border-color: #c0cdd6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Заголовок заявки */
.application-header {
    background: #f1f5f9;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid #e1e8ed;
}

.application-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.application-id {
    font-weight: 600;
    font-size: 1rem;
    color: #1e293b;
}

.application-date {
    font-size: 0.85rem;
    color: #64748b;
}

/* Статусы заявок - ЦВЕТА */
.application-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid transparent;
}

/* Открыта - Бело-прозрачно розовый */
.application-status.status-открыта {
    background: #fce4ec;
    color: #c2185b;
    border-color: #f8bbd0;
}

/* В работе - Оранжевый (#ff9800) */
.application-status.status-в-работе {
    background: #fff3e0;
    color: #ef6c00;
    border-color: #ffcc80;
}

/* Выполнена - Зеленый (#4caf50) */
.application-status.status-выполнена {
    background: #e8f5e9;
    color: #388e3c;
    border-color: #a5d6a7;
}

/* Отклонена - Красный (#f44336) */
.application-status.status-отклонена {
    background: #ffebee;
    color: #d32f2f;
    border-color: #ffcdd2;
}

/* Содержимое заявки */
.application-content {
    padding: 20px;
}

.application-comment {
    margin-bottom: 15px;
}

.application-comment strong {
    color: #334155;
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.application-comment p {
    margin: 0;
    line-height: 1.5;
    color: #475569;
    font-size: 0.95rem;
    background: #f8fafc;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 2px solid #2a5c8a;
}

.application-file {
    margin-top: 12px;
}

.application-file strong {
    color: #334155;
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.application-file p {
    margin: 0;
}

.file-link {
    color: #2a5c8a;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f1f5f9;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.file-link:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    text-decoration: underline;
}

.file-type {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 400;
}

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

    .application-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 15px;
    }

    .application-header-left {
        gap: 10px;
    }

    .application-content {
        padding: 15px;
    }

    .application-comment p {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .user-applications-container h3 {
        font-size: 1.2rem;
        padding-bottom: 12px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .user-applications-container {
        padding: 15px;
    }

    .application-content {
        padding: 12px;
    }

    .application-header {
        padding: 10px 12px;
    }

    .application-id {
        font-size: 0.95rem;
    }

    .application-date {
        font-size: 0.8rem;
    }

    .application-status {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .application-comment p {
        font-size: 0.85rem;
        padding: 8px 10px;
    }

    .file-link {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
}

/* Улучшенные стили для мобильных */
@media (max-width: 360px) {
    .application-header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .application-id {
        font-size: 0.9rem;
    }

    .application-date {
        font-size: 0.75rem;
    }
}



/* ========================================================================= */
/* СТИЛИ ДЛЯ ФОРМЫ СОЗДАНИЯ ЗАЯВКИ В ОТТЕНКАХ #2a5c8a */
/* ========================================================================= */

/* Основной контейнер формы заявки */
.application-form-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fbff 0%, #e8f4fd 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(42, 92, 138, 0.12);
    border: 1px solid rgba(42, 92, 138, 0.1);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 20px 0 0 0; /* Отступ только сверху 5px */
    width: 100%;
    box-sizing: border-box;
}


/* Заголовок формы */
.application-form-container h3 {
    color: #1a4d7a;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.application-form-container h3::before {
    content: "📝";
    font-size: 1.3em;
    animation: float 3s ease-in-out infinite;
}

/* Группы формы */
.application-form-container .form-group {
    margin-bottom: 25px;
    animation: fadeIn 0.6s ease-out 0.4s both;
}

/* Метки полей */
.application-form-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a4d7a;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.application-form-container label::before {
    content: "•";
    color: #2a5c8a;
    font-size: 1.2em;
}

/* Поля ввода */
.application-form-container textarea,
.application-form-container input[type="file"] {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid rgba(42, 92, 138, 0.1);
    border-radius: 12px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1rem;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(42, 92, 138, 0.05);
}

.application-form-container textarea {
    min-height: 150px;
    resize: vertical;
}

.application-form-container textarea:focus,
.application-form-container input[type="file"]:focus {
    outline: none;
    border-color: #2a5c8a;
    box-shadow: 0 4px 16px rgba(42, 92, 138, 0.15);
    transform: translateY(-1px);
}

.application-form-container textarea::placeholder,
.application-form-container input[type="file"]::placeholder {
    color: #95a5a6;
    font-style: italic;
}

/* Кнопка отправки */
.application-form-container .button-primary {
    background: linear-gradient(135deg, #2a5c8a 0%, #3d7db3 100%);
    color: white !important;
    padding: 15px 30px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(42, 92, 138, 0.2);
    position: relative;
    overflow: hidden;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.application-form-container .button-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.application-form-container .button-primary:hover::before {
    left: 100%;
}

.application-form-container .button-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(42, 92, 138, 0.3);
    background: linear-gradient(135deg, #1a4d7a 0%, #2a5c8a 100%);
}

.application-form-container .button-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(42, 92, 138, 0.2);
}

/* Сообщения об успехе и ошибках */
.application-success {
    padding: 20px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-radius: 12px;
    margin-bottom: 25px;
    animation: fadeIn 0.6s ease-out;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.application-success::before {
    content: "✅";
    font-size: 1.5em;
}

.application-error {
    padding: 20px;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 12px;
    margin-bottom: 25px;
    animation: fadeIn 0.6s ease-out;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.application-error::before {
    content: "❌";
    font-size: 1.5em;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .application-form-container {
        padding: 25px;
        margin: 0; /* Убраны внешние отступы */
    }

    .application-form-container h3 {
        font-size: 1.3rem;
    }

    .application-form-container textarea,
    .application-form-container input[type="file"] {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .application-form-container .button-primary {
        padding: 12px 24px !important;
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    .application-form-container {
        padding: 20px;
        margin: 0; /* Убраны внешние отступы */
    }

    .application-form-container h3 {
        font-size: 1.2rem;
        gap: 8px;
    }

    .application-form-container h3::before {
        font-size: 1.1em;
    }

    .application-form-container .form-group {
        margin-bottom: 20px;
    }

    .application-form-container textarea,
    .application-form-container input[type="file"] {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .application-form-container textarea {
        min-height: 120px;
    }

    .application-success,
    .application-error {
        padding: 15px;
        font-size: 0.9rem;
        gap: 8px;
    }

    .application-success::before,
    .application-error::before {
        font-size: 1.2em;
    }
}

/* ========================================================================= */
/* СТИЛИ ДЛЯ SFTP ФАЙЛОВОГО МЕНЕДЖЕРА В ОТТЕНКАХ #2a5c8a */
/* ========================================================================= */

/* Основной контейнер SFTP менеджера - УБРАНЫ ВСЕ ОТСТУПЫ */
#sftp-reports-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fbff 0%, #e8f4fd 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(42, 92, 138, 0.12);
    border: 1px solid rgba(42, 92, 138, 0.1);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0; /* УБРАНЫ ВСЕ ОТСТУПЫ */
}

/* Заголовок */
#sftp-reports-container h3 {
    color: #1a4d7a;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

#sftp-reports-container h3::before {
    content: "📁";
    font-size: 1.3em;
    animation: float 3s ease-in-out infinite;
}

/* Хлебные крошки */
.sftp-breadcrumbs {
    background: rgba(42, 92, 138, 0.05);
    padding: 15px 20px;
    border-radius: 12px;
    border-left: 4px solid #2a5c8a;
    font-weight: 500;
    margin-bottom: 25px;
    animation: fadeIn 0.6s ease-out 0.4s both;
}

.sftp-breadcrumbs a {
    color: #2a5c8a;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.sftp-breadcrumbs a:hover {
    color: #1a3d5c;
    transform: translateY(-1px);
}

.sftp-breadcrumbs a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2a5c8a, #4a8bc2);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sftp-breadcrumbs a:hover::after {
    width: 100%;
}

/* Таблица файлов */
.file-list {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(42, 92, 138, 0.08);
    border: 1px solid rgba(42, 92, 138, 0.1);
    margin: 0; /* УБРАНЫ ОТСТУПЫ */
    animation: slideInUp 0.8s ease-out 0.6s both;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.file-list thead {
    background: linear-gradient(135deg, #2a5c8a 0%, #3d7db3 100%);
    color: white;
}

.file-list thead th {
    padding: 18px 25px !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: none !important;
    text-align: left !important;
}

.file-list thead th:first-child { 
    border-top-left-radius: 15px !important; 
}

.file-list thead th:last-child { 
    border-top-right-radius: 15px !important; 
}

.file-list tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(42, 92, 138, 0.05);
    animation: slideIn 0.5s ease-out forwards;
    opacity: 0;
}

.file-list tbody tr:nth-child(1) { animation-delay: 0.1s; }
.file-list tbody tr:nth-child(2) { animation-delay: 0.15s; }
.file-list tbody tr:nth-child(3) { animation-delay: 0.2s; }
.file-list tbody tr:nth-child(4) { animation-delay: 0.25s; }
.file-list tbody tr:nth-child(5) { animation-delay: 0.3s; }

.file-list tbody tr:hover {
    background: linear-gradient(90deg, rgba(42, 92, 138, 0.05) 0%, rgba(74, 139, 194, 0.05) 100%);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(42, 92, 138, 0.1);
}

.file-list tbody td {
    padding: 16px 25px !important;
    border: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    background: #ffffff !important;
    font-size: 15px !important;
    vertical-align: middle;
}

.file-list tbody tr:last-child td:first-child { 
    border-bottom-left-radius: 15px !important; 
}

.file-list tbody tr:last-child td:last-child { 
    border-bottom-right-radius: 15px !important; 
}

/* Ссылки на файлы и папки */
.file-list tbody td a {
    color: #2a5c8a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.file-list tbody td a:hover {
    color: #1a3d5c;
    transform: scale(1.02);
}

/* Кнопки */
.button {
    background: linear-gradient(135deg, #2a5c8a 0%, #3d7db3 100%);
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(42, 92, 138, 0.2);
    position: relative;
    overflow: hidden;
}

.button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.button:hover::before {
    left: 100%;
}

.button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 16px rgba(42, 92, 138, 0.3);
    background: linear-gradient(135deg, #1a4d7a 0%, #2a5c8a 100%);
    text-decoration: none !important;
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(42, 92, 138, 0.2);
}

/* Специфичные кнопки */
.open-dir-button {
    background: linear-gradient(135deg, #28a745 0%, #34ce57 100%) !important;
}

.open-dir-button:hover {
    background: linear-gradient(135deg, #218838 0%, #28a745 100%) !important;
}

.download-file-button {
    background: linear-gradient(135deg, #2a5c8a 0%, #3d7db3 100%) !important;
}

.download-file-button:hover {
    background: linear-gradient(135deg, #1a4d7a 0%, #2a5c8a 100%) !important;
}

.parent-dir-button {
    background: linear-gradient(135deg, #ffc107 0%, #d39e00 100%) !important;
    color: #333 !important;
}

.parent-dir-button:hover {
    background: linear-gradient(135deg, #e0a800 0%, #ffc107 100%) !important;
}

/* Иконки файлов */
.file-list tbody td .file-icon {
    font-size: 1.2em;
    margin-right: 8px;
    animation: pulse 2s ease-in-out infinite;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    #sftp-reports-container {
        padding: 25px;
        margin: 0; /* УБРАНЫ ОТСТУПЫ */
    }

    .file-list {
        font-size: 0.9rem;
    }

    .file-list thead th,
    .file-list tbody td {
        padding: 12px 15px !important;
    }

    .button {
        padding: 10px 18px !important;
        font-size: 0.85rem !important;
    }

    #sftp-reports-container h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    #sftp-reports-container {
        padding: 20px;
        margin: 0; /* УБРАНЫ ОТСТУПЫ */
    }

    .file-list thead th,
    .file-list tbody td {
        padding: 10px 12px !important;
    }

    .button {
        padding: 8px 14px !important;
        font-size: 0.8rem !important;
    }

    .sftp-breadcrumbs {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}
