/* Общие стили */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Стили для страницы входа */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-header h1 {
    color: #333;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #666;
}

.login-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.btn-primary {
    background-color: #667eea;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #5a6fd5;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.message {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 0.75rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.test-accounts {
    background-color: #e3f2fd;
    padding: 1rem;
    border-radius: 4px;
}

.test-accounts h3 {
    margin-bottom: 0.5rem;
    color: #1565c0;
}

.test-accounts p {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

/* Стили для кабинета */
.cabinet-page {
    background-color: #f8f9fa;
}

.cabinet-header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.cabinet-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cabinet-header h1 {
    color: #333;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-info span {
    margin-bottom: 0.25rem;
}

.btn-logout {
    color: #667eea;
    text-decoration: none;
}

.btn-logout:hover {
    text-decoration: underline;
}

.actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.actions button {
    width: auto;
}

.applications-section {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.applications-section h2 {
    margin-bottom: 1rem;
    color: #333;
}

.applications-table {
    width: 100%;
    border-collapse: collapse;
}

.applications-table th,
.applications-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.applications-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.status-нарассмотрении {
    background-color: #fff3cd;
    color: #856404;
}

.status-одобрено {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
}

.status-отказано {
    background-color: #f44336;
    color: white;
    font-weight: bold;
}

.status-form {
    display: flex;
    gap: 0.5rem;
}

.status-form select {
    padding: 0.25rem;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 1.5rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 0.5rem;
}

.close:hover {
    color: #000;
}

#file-preview {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th,
.users-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #ddd;
}

.users-table input {
    width: 100%;
    padding: 0.5rem;
}
/* Общие стили */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Стили для страницы входа */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-header h1 {
    color: #333;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #666;
}

.login-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.btn-primary {
    background-color: #667eea;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #5a6fd5;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.message {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 0.75rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.test-accounts {
    background-color: #e3f2fd;
    padding: 1rem;
    border-radius: 4px;
}

.test-accounts h3 {
    margin-bottom: 0.5rem;
    color: #1565c0;
}

.test-accounts p {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

/* Стили для кабинета */
.cabinet-page {
    background-color: #f8f9fa;
}

.cabinet-header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.cabinet-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cabinet-header h1 {
    color: #333;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-info span {
    margin-bottom: 0.25rem;
}

.btn-logout {
    color: #667eea;
    text-decoration: none;
}

.btn-logout:hover {
    text-decoration: underline;
}

.actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.actions button {
    width: auto;
}

.applications-section {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.applications-section h2 {
    margin-bottom: 1rem;
    color: #333;
}

.applications-table {
    width: 100%;
    border-collapse: collapse;
}

.applications-table th,
.applications-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.applications-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.status-нарассмотрении {
    background-color: #fff3cd;
    color: #856404;
}

.status-одобрено {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
}

.status-отказано {
    background-color: #f44336;
    color: white;
    font-weight: bold;
}

.status-form {
    display: flex;
    gap: 0.5rem;
}

.status-form select {
    padding: 0.25rem;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 1.5rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 0.5rem;
}

.close:hover {
    color: #000;
}

#file-preview {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th,
.users-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #ddd;
}

.users-table input {
    width: 100%;
    padding: 0.5rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .cabinet-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-info {
        align-items: flex-start;
        margin-top: 1rem;
    }
    
    .applications-table {
        display: block;
        overflow-x: auto;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .actions button {
        width: 100%;
    }
}
/* Адаптивность */
@media (max-width: 768px) {
    .cabinet-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-info {
        align-items: flex-start;
        margin-top: 1rem;
    }
    
    .applications-table {
        display: block;
        overflow-x: auto;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .actions button {
        width: 100%;
    }
}