@import url('navbar.css');

:root {
    --primary: #667eea;
    --secondary: #764ba2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    color: #2c3e50;
    line-height: 1.6;
    font-size: 14px;
}

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

/* Основной контент */
h2 {
    color: var(--primary);
    margin: 2rem 0 1rem 0;
    font-size: 1.8rem;
    font-weight: 700;
}

h3 {
    color: #2c3e50;
    margin: 1.2rem 0 0.8rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

h4 {
    color: #555;
    margin: 0.8rem 0 0.4rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Формы */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
    font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #dde3f0;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.form-group input::placeholder {
    color: #999;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 11px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-small {
    padding: 8px 14px;
    font-size: 12px;
}

.btn-success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.btn-success:hover {
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

/* Таблицы */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
}

table th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 13px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
}

table td {
    padding: 12px 13px;
    border-bottom: 1px solid #f0f0f0;
}

table tbody tr:hover {
    background: #fafbfc;
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* Статусы */
.status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status.active {
    background: #d4edda;
    color: #155724;
}

.status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.status.working {
    background: #cfe2ff;
    color: #084298;
}

.status.holiday {
    background: #fff3cd;
    color: #664d03;
}

/* Алерты */
.alert {
    padding: 13px 16px;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 4px solid;
    font-size: 14px;
    animation: slideIn 0.3s ease-out;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffc107;
}

.alert-info {
    background: #cfe2ff;
    color: #084298;
    border-color: #b6d4fe;
}

/* Footer */
footer {
    text-align: center;
    color: #999;
    font-size: 12px;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    margin-top: 40px;
    background: white;
}

/* Dashboard */
.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.widget {
    background: white;
    padding: 1.8rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.widget:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.widget h3 {
    color: var(--primary);
    margin-top: 0;
}

.widget-content {
    font-size: 0.95rem;
    color: #666;
}

.big-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}

/* Admin panel */
.admin-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.admin-widget {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
    cursor: pointer;
}

.admin-widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.widget-icon {
    font-size: 2.5rem;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary);
    font-size: 1.1rem;
}

.widget-info p {
    margin: 0;
    color: #999;
    font-size: 13px;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .dashboard-widgets,
    .admin-widgets {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 1.5rem;
    }

    table {
        font-size: 13px;
    }

    table th,
    table td {
        padding: 10px 8px;
    }
}