* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    font-size: 18px; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Заголовки */
h1, h2, h3 {
    color: #2e7d32; 
    margin-bottom: 25px;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

h2 {
    font-size: 2rem;
    margin-top: 30px;
}

h3 {
    font-size: 1.5rem;
}

/* Кнопки */
.btn {
    display: inline-block;
    background-color: #4caf50; 
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
    margin: 10px 5px;
}

.btn:hover {
    background-color: #388e3c; 
    /*transform: translateY(-2px);*/
}

.btn-secondary {
    background-color: #81c784; 
}

.btn-secondary:hover {
    background-color: #66bb6a;
}

.btn-small {
    padding: 10px 20px;
    font-size: 1rem;
}

.btn-file {
    background-color: #a5d6a7;
    color: #1b5e20;
}

.btn-file:hover {
    background-color: #81c784;
}

/* Формы */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2e7d32; 
    font-size: 1.1rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #c8e6c9;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.optional {
    color: #757575;
    font-weight: normal;
    font-size: 0.9rem;
}

/* Навигация */
.nav {
    background-color: #1b5e20; 
    padding: 15px 0;
    margin-bottom: 40px;
    border-radius: 8px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: #2e7d32;
}

/* Таблица статей */
.articles-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
}

.articles-table th,
.articles-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.articles-table th {
    background-color: #e8f5e9;
    color: #2e7d32;
    font-weight: 600;
    font-size: 1.2rem;
}

.articles-table tr:hover {
    background-color: #f1f8e9;
}

/* Статусы статей */
.status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
}

.status-draft {
    background-color: #ffecb3;
    color: #ff8f00;
}

.status-submitted {
    background-color: #bbdefb;
    color: #1565c0;
}

.status-inwork {
    background-color: #c8e6c9;
    color: #2e7d32;
}

.status-waiting {
    background-color: #e1bee7;
    color: #7b1fa2;
}

.status-accepted {
    background-color: #c8e6c9;
    color: #1b5e20;
    font-weight: bold;
}

.status-rejected {
    background-color: #ffcdd2;
    color: #c62828;
}

/* Действия с файлами */
.file-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Сообщения */
.message {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.message-success {
    background-color: #e8f5e9;
    border-left: 5px solid #4caf50;
    color: #2e7d32;
}

.message-info {
    background-color: #e3f2fd;
    border-left: 5px solid #2196f3;
    color: #1565c0;
}

.footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 2px solid #c8e6c9;
    color: #666;
    font-size: 1rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        padding: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .articles-table {
        font-size: 1rem;
    }
    
    .articles-table th,
    .articles-table td {
        padding: 12px 8px;
    }
    
    .file-actions {
        flex-direction: column;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 1.1rem;
    }
}