/* Основные стили */
body { margin: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f4f6f9; color: #333; }
* { box-sizing: border-box; }

/* Layout */
.wrapper { display: flex; min-height: 100vh; }
.sidebar { width: 260px; background: #2c3e50; color: #ecf0f1; flex-shrink: 0; }
.content { flex-grow: 1; padding: 30px; }

/* Sidebar */
.brand { font-size: 24px; font-weight: bold; text-align: center; padding: 20px; border-bottom: 1px solid #34495e; background: #1a252f; }
.user-profile-mini { padding: 20px; text-align: center; border-bottom: 1px solid #34495e; }
.user-profile-mini img { width: 60px; height: 60px; border-radius: 50%; margin-bottom: 10px; object-fit: cover; }
.menu { list-style: none; padding: 0; margin: 0; }
.menu li a { display: block; padding: 15px 20px; color: #bdc3c7; text-decoration: none; border-left: 3px solid transparent; transition: 0.3s; }
.menu li a:hover { background: #34495e; color: white; border-left-color: #3498db; }

/* Авторизация */
.auth-body { display: flex; justify-content: center; align-items: center; height: 100vh; background: #e9ecef; }
.auth-card { width: 350px; padding: 40px; background: white; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.auth-card .logo { font-size: 22px; font-weight: bold; text-align: center; margin-bottom: 20px; color: #2c3e50; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; }
.form-group input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; }
.btn-primary { width: 100%; padding: 10px; background: #3498db; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; }
.btn-primary:hover { background: #2980b9; }

/* Dashboard Cards */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 20px; }
.card { background: white; padding: 25px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.card h3 { margin: 0 0 10px 0; font-size: 14px; color: #7f8c8d; text-transform: uppercase; }
.card .big-num { font-size: 36px; font-weight: bold; color: #2c3e50; margin: 0; }

/* Таблицы */
.data-table { width: 100%; border-collapse: collapse; background: white; margin-top: 20px; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.data-table th, .data-table td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; }
.data-table th { background: #f8f9fa; font-weight: 600; }
.btn-small { padding: 5px 10px; background: #27ae60; color: white; text-decoration: none; border-radius: 4px; font-size: 13px; }
/* --- Стили для страницы списка и поиска --- */
.content-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.search-form { display: flex; gap: 10px; }
.search-form input { padding: 8px; border: 1px solid #ddd; border-radius: 4px; width: 250px; }

/* --- Стили для Профиля --- */
.profile-container { display: flex; gap: 20px; align-items: flex-start; }
.profile-sidebar { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
.profile-main { flex-grow: 1; display: flex; flex-direction: column; gap: 20px; }

.profile-avatar-large { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid #f4f6f9; margin-bottom: 10px; }
.center-content { text-align: center; }
.badge { background: #3498db; color: white; padding: 4px 10px; border-radius: 12px; font-size: 12px; }

.info-list { list-style: none; padding: 0; }
.info-list li { padding: 10px 0; border-bottom: 1px solid #eee; font-size: 14px; }

/* Сетка информации */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 15px; }
.info-item label { display: block; font-size: 12px; color: #888; margin-bottom: 5px; text-transform: uppercase; }
.info-item p { margin: 0; font-weight: 500; color: #333; }
.info-item.full-width { grid-column: 1 / -1; } /* На всю ширину */

/* Документы */
.card-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.doc-list { list-style: none; padding: 0; }
.doc-list li { background: #f8f9fa; margin-bottom: 10px; padding: 10px; border-radius: 4px; border: 1px solid #eee; }
.doc-list a { text-decoration: none; color: #2c3e50; font-weight: 500; }
.text-muted { color: #999; font-style: italic; }

@media (max-width: 768px) {
    .profile-container { flex-direction: column; }
    .profile-sidebar { width: 100%; }
}