/* Основные стили для системы управления университетом */

/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    width: 100%;
    height: 100%;
    background-color: #f5f7fa;
}

footer {
    color: #999
}

.container {
display: flex;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
overflow: hidden;
    align-items: stretch;
    min-height: 0;
    display: flex;
}
    
aside {
    z-index: 8;
    width: 260px;
    max-width: 260px;
    position: relative;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding 20px;
    border-right: 1px solid #ecf0f1;
}

main {
    flex-direction: row;
    flex-grow: 1;
    min-width: 0;
    width: 712px;
flex-direction: column;
flex: 1;
max-width: 100%;
display: flex;
position: relative;
}

/* Заголовки */
h1 {
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 28px;
}

h2 {
    color: #34495e;
    margin: 25px 0 15px 0;
    font-size: 24px;
    padding-left: 10px;
    border-left: 4px solid #3498db;
}

h3 {
    color: #2c3e50;
    margin: 20px 0 15px 0;
    font-size: 20px;
    padding-bottom: 5px;
    border-bottom: 2px solid #ecf0f1;
}

/* Таблицы */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

table th {
    background-color: #3498db;
    color: white;
    padding: 5px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ecf0f1;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover {
    background-color: #f8f9fa;
}

table tr:nth-child(even) {
    background-color: #f8f9fa;
}

table tr:nth-child(even):hover {
    background-color: #f0f2f5;
}

/* Формы */
form {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

input[type="submit"],
input[type="button"],
button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Ссылки */
a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Ссылки в таблицах (действия) */
table a {
    display: inline-block;
    margin: 0 5px;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: 500;
}

table a:first-child {
    color: #27ae60;
    background-color: rgba(39, 174, 96, 0.1);
}

table a:first-child:hover {
    background-color: rgba(39, 174, 96, 0.2);
}

table a:last-child {
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

table a:last-child:hover {
    background-color: rgba(231, 76, 60, 0.2);
}

/* Сообщения */
p[style*="color: green;"] {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #28a745;
    margin: 15px 0;
}

p[style*="color: red;"] {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #dc3545;
    margin: 15px 0;
}

/* Кнопка отмены */
a[href*="page="] {
    display: inline-block;
    margin-left: 5px;
    padding: 5px 10px;
    background-color: #95a5a6;
    color: white;
    border-radius: 5px;
    font-weight: 600;
}

a[href*="page="]:hover {
    background-color: #7f8c8d;
    text-decoration: none;
}

#report-results table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

#report-results th {
    background-color: #f2f2f2;
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

#report-results td {
    padding: 8px 10px;
    border: 1px solid #ddd;
}

#report-results tr:nth-child(even) {
    background-color: #f9f9f9;
}

#report-results tr:hover {
    background-color: #f5f5f5;
}

#report-params {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

#report-params h4 {
    margin-top: 0;
    color: #495057;
}

.grade-excellent {
    background-color: #d4edda;
    color: #155724;
    font-weight: bold;
}

.grade-good {
    background-color: #d1ecf1;
    color: #0c5460;
    font-weight: bold;
}

.grade-satisfactory {
    background-color: #fff3cd;
    color: #856404;
    font-weight: bold;
}

.grade-unsatisfactory {
    background-color: #f8d7da;
    color: #721c24;
    font-weight: bold;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    table {
        font-size: 14px;
    }
    
    table th,
    table td {
        padding: 10px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 18px;
    }
}

/* Дополнительные классы для утилит */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.ml-10 {
    margin-left: 10px;
}

.mr-10 {
    margin-right: 10px;
}

/* Стили для сообщений о пустых данных */
td[colspan] {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 30px !important;
}
