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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f9;
}

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

/* Навигация */
.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.nav-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

    .nav-menu a {
        color: white;
        text-decoration: none;
        padding: 0.5rem 1rem;
        border-radius: 4px;
        transition: background-color 0.3s;
    }

        .nav-menu a:hover {
            background-color: #34495e;
        }

/* Главная страница */
.hero {
    text-align: center;
    padding: 3rem 0;
}

    .hero h1 {
        font-size: 2.5rem;
        color: #2c3e50;
        margin-bottom: 1rem;
    }

.subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 3rem;
}

/* Карточки статистики */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

    .card:hover {
        transform: translateY(-5px);
    }

    .card h3 {
        color: #7f8c8d;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
    margin: 0.5rem;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-info {
    background-color: #3498db;
    color: white;
}

.btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Список задач */
.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
}

.tasks-stats {
    display: flex;
    gap: 1rem;
}

.badge {
    padding: 0.3rem 0.8rem;
    background-color: #e0e0e0;
    border-radius: 20px;
    font-size: 0.9rem;
}

    .badge.success {
        background-color: #27ae60;
        color: white;
    }

    .badge.warning {
        background-color: #f39c12;
        color: white;
    }

/* Фильтры */
.tasks-filters {
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    background-color: #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

    .filter-btn.active {
        background-color: #3498db;
        color: white;
    }

/* Карточка задачи */
.task-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

    .task-card:hover {
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    .task-card.completed {
        opacity: 0.8;
        background-color: #f8f9fa;
    }

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

    .task-header h3 {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .task-header a {
        color: #2c3e50;
        text-decoration: none;
    }

.priority-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

    .priority-badge.high {
        background-color: #e74c3c;
        color: white;
    }

    .priority-badge.medium {
        background-color: #f39c12;
        color: white;
    }

    .priority-badge.low {
        background-color: #27ae60;
        color: white;
    }

.task-date {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.task-description {
    color: #666;
    margin-bottom: 1rem;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-small {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

/* Футер */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

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

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

.task-detail-container {
    margin: 2rem 0;
}

.task-detail-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.btn-back {
    display: inline-block;
    margin-bottom: 1rem;
    color: #7f8c8d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

    .btn-back:hover {
        color: #3498db;
    }

.task-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.detail-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .detail-card h2 {
        font-size: 1.3rem;
        color: #2c3e50;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #e0e0e0;
    }

/* Основная информация */
.main-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.8rem 1.5rem;
}

.detail-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.detail-label {
    font-weight: 500;
    color: #7f8c8d;
    min-width: 120px;
}

.detail-value {
    color: #2c3e50;
}

    .detail-value.code {
        font-family: monospace;
        background-color: #f8f9fa;
        padding: 0.2rem 0.5rem;
        border-radius: 4px;
    }

    .detail-value.deadline {
        color: #e67e22;
        font-weight: 500;
    }

    .detail-value.priority.grade-1 {
        color: #27ae60;
    }

    .detail-value.priority.grade-2 {
        color: #f39c12;
    }

    .detail-value.priority.grade-3 {
        color: #e74c3c;
    }

/* Описание */
.description-text {
    line-height: 1.6;
    color: #34495e;
    white-space: pre-wrap;
}

/* Таблица прогресса */
.progress-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

    .progress-table th {
        text-align: left;
        padding: 0.5rem;
        background-color: #f8f9fa;
        border-bottom: 2px solid #e0e0e0;
        color: #7f8c8d;
        font-weight: 500;
    }

    .progress-table td {
        padding: 0.5rem;
        border-bottom: 1px solid #e0e0e0;
    }

    .progress-table tr:hover {
        background-color: #f8f9fa;
    }

/* Списки файлов и документов */
.things-list, .files-list {
    list-style: none;
    padding: 0;
}

    .things-list li, .files-list li {
        padding: 0.5rem 0;
        border-bottom: 1px dashed #e0e0e0;
    }

        .things-list li:last-child, .files-list li:last-child {
            border-bottom: none;
        }

    .things-list a, .files-list a {
        color: #3498db;
        text-decoration: none;
        font-weight: 500;
        margin-left: 0.5rem;
    }

        .things-list a:hover, .files-list a:hover {
            text-decoration: underline;
        }

    .things-list p {
        margin: 0.2rem 0 0 1.5rem;
        font-size: 0.9rem;
        color: #7f8c8d;
    }

.file-icon {
    font-size: 1.1rem;
}

.file-size {
    font-size: 0.8rem;
    color: #95a5a6;
    margin-left: 0.5rem;
}
.form-group {
    margin-bottom: 15px;
}
