/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* === Мобильное/десктопное меню === */
.mobile-menu-toggle {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1001;
    background: #1a73e8;
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    background: white;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease;
    z-index: 1000;
    padding: 20px;
    padding-top: 60px;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.main-content {
    margin-left: 0;
    padding: 20px 15px;
    width: 100%;
    background-color: #ffffff;
    min-height: 100vh;
}

/* Sidebar стили */
.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-link {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #555;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}
.sidebar-link:hover {
    background-color: #f0f0f0;
    color: #1a73e8;
}
.sidebar-link.active {
    background-color: #e3f2fd;
    color: #1a73e8;
    font-weight: 600;
}

/* Основной контент */
h1 { font-size: 32px; margin-bottom: 20px; color: #2c3e50; }
h2 { font-size: 24px; margin: 30px 0 15px; color: #2c3e50; }
h3 { font-size: 20px; margin: 25px 0 12px; color: #2c3e50; }
h4 { font-size: 18px; margin: 20px 0 10px; color: #2c3e50; }

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}
.form-control:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}
.btn-primary { background-color: #1a73e8; color: white; }
.btn-primary:hover { background-color: #1557b0; }
.btn-secondary { background-color: #6c757d; color: white; }
.btn-secondary:hover { background-color: #5a6268; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

.alert {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.alert-info { background-color: #e3f2fd; border-left: 4px solid #2196f3; color: #0d47a1; }
.alert-warning { background-color: #fff3e0; border-left: 4px solid #ff9800; color: #e65100; }
.alert-error { background-color: #ffebee; border-left: 4px solid #f44336; color: #c62828; }
.alert-success { background-color: #e8f5e9; border-left: 4px solid #4caf50; color: #2e7d32; }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.metric {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}
.metric-value {
    font-size: 32px;
    font-weight: bold;
    color: #1a73e8;
    margin-bottom: 5px;
}
.metric-label {
    font-size: 14px;
    color: #5f6368;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.data-table th, .data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}
.data-table th {
    font-weight: 600;
    color: #2c3e50;
    background-color: #f5f5f5;
}
.data-table tr:hover { background-color: #f9f9f9; }

.team-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}
.team-member {
    text-align: center;
    padding: 12px 20px;
    border-radius: 10px;
    width: 220px;
    border: 2px solid;
}
.team-member.main-doctor { background: #e3f2fd; border-color: #2196f3; color: #0d47a1; }
.team-row { display: flex; gap: 60px; }
.team-member.assistant { background: #f1f8e9; border-color: #8bc34a; color: #33691e; width: 160px; }
.team-member.add-assistant { background: #fff3e0; border-color: #ff9800; color: #e65100; width: 180px; }
.team-member.intern { background: #fce4ec; border-color: #e91e63; color: #880e4f; width: 180px; }
.team-member.artist { background: #f3e5f5; border-color: #9c27b0; color: #4a148c; width: 180px; margin-top: 20px; }
.team-name { font-weight: bold; font-size: 18px; margin-bottom: 5px; }
.team-role { font-size: 12px; opacity: 0.8; }

.text-muted { color: #6c757d; font-size: 14px; }
.help-text { background-color: #f8f9fa; padding: 10px; border-radius: 4px; margin-bottom: 15px; font-size: 14px; }
.info-text { color: #6c757d; font-size: 14px; margin-top: 10px; }
.download-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 10px; }
.checkbox-label { display: flex; align-items: center; gap: 5px; cursor: pointer; }

.search-form { background-color: #f8f9fa; padding: 20px; border-radius: 8px; margin-bottom: 20px; }
.search-results { margin-top: 20px; }
.access-form { background-color: #fff3e0; padding: 20px; border-radius: 8px; margin-top: 20px; }
.login-form-wide {
    width: 100%;
    max-width: none;
    margin: 0 0 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.user-info { background-color: #f8f9fa; padding: 20px; border-radius: 8px; }
.guest-offer { margin-top: 20px; padding: 15px; background-color: #fff3e0; border-radius: 8px; }
.export-section { margin-bottom: 30px; }
hr { margin: 30px 0; border: none; border-top: 1px solid #e0e0e0; }

/* Только на больших экранах — уменьшаем padding */
@media (min-width: 769px) {
    .main-content {
        padding: 30px;
    }
}
