/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* Утилиты */
.hidden {
    display: none !important;
}

.screen {
    min-height: 100vh;
    width: 100%;
}

/* Экран входа */
#login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-card h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #667eea;
    font-weight: 700;
}

.login-card p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Основное приложение */
#app-screen {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Шапка */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 2rem;
    color: #667eea;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info span {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

/* Основной контент */
.main-content {
    flex: 1;
    padding: 30px 0;
}

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

/* Секция создания задачи */
.create-task-section {
    background: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    padding: 40px 0;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.create-task-section h2 {
    margin-bottom: 30px;
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
}

/* Формы */
.task-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-weight: 600;
    color: #555;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

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

/* Кнопки */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

.btn-danger {
    background: #dc3545;
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

/* Фильтры */
.filters-section {
    background: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    padding: 25px 0;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filters {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2fr;
    gap: 25px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Секция задач */
.tasks-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 0;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.tasks-header h2 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
}

.tasks-stats {
    color: #666;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Контейнер задач */
.tasks-container {
    display: grid;
    gap: 25px;
    padding: 0 20px;
}

/* Карточка задачи */
.task-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #e1e5e9;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.task-card:hover::before {
    transform: scaleX(1);
}

.task-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.task-card.high-priority {
    border-left-color: #dc3545;
}

.task-card.medium-priority {
    border-left-color: #ffc107;
}

.task-card.low-priority {
    border-left-color: #28a745;
}

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

.task-card.completed::before {
    background: #28a745;
    transform: scaleX(1);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.task-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.task-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #666;
}

.task-priority {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-priority.high {
    background: #f8d7da;
    color: #721c24;
}

.task-priority.medium {
    background: #fff3cd;
    color: #856404;
}

.task-priority.low {
    background: #d4edda;
    color: #155724;
}

.task-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-status.pending {
    background: #e2e3e5;
    color: #383d41;
}

.task-status.in-progress {
    background: #cce5ff;
    color: #004085;
}

.task-status.completed {
    background: #d4edda;
    color: #155724;
}

.task-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.task-authors {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.task-author {
    font-weight: 600;
    color: #667eea;
}

.task-assignee {
    font-weight: 500;
    color: #28a745;
    font-size: 0.8rem;
}

.task-date {
    color: #999;
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Вкладки */
.modal-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn.active {
    color: #667eea;
    background: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.tab-content {
    display: none;
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.tab-content.active {
    display: block;
}

/* Комментарии */
.comments-section {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.comments-header {
    margin-bottom: 25px;
}

.comments-header h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-form textarea {
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: all 0.3s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.comment-form .btn {
    align-self: flex-end;
    padding: 12px 25px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.comment-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    position: relative;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
    color: #667eea;
    font-size: 0.9rem;
}

.comment-date {
    color: #999;
    font-size: 0.8rem;
}

.comment-text {
    color: #333;
    line-height: 1.5;
    margin-bottom: 10px;
}

.comment-actions {
    display: flex;
    gap: 10px;
}

.comment-delete {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.comment-delete:hover {
    background: #f8d7da;
}

/* Уведомления */
.notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notification {
    padding: 20px 25px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.4s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.notification.error {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

.notification.info {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Сообщения об ошибках */
.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
    font-weight: 600;
}

/* Адаптивность */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .filters {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .task-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .task-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .login-card {
        padding: 30px 20px;
    }
    
    .login-card h1 {
        font-size: 2rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .tab-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .tasks-container {
        padding: 0 15px;
    }
    
    .modal-content {
        padding: 0;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .tab-content {
        padding: 15px;
    }
    
    .comment-form .btn {
        align-self: stretch;
    }
}

/* Админ-панель */
.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.admin-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.admin-content h2 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

.admin-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.admin-section h3 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.btn-admin {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.btn-admin:hover {
    background: linear-gradient(135deg, #ee5a24, #ff6b6b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.users-list {
    max-height: 300px;
    overflow-y: auto;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.user-role {
    font-size: 0.9rem;
    color: #666;
    padding: 4px 8px;
    background: #e9ecef;
    border-radius: 15px;
    display: inline-block;
    width: fit-content;
}

.user-role.admin {
    background: #ff6b6b;
    color: white;
}

.user-role.user {
    background: #28a745;
    color: white;
}

.user-date {
    font-size: 0.8rem;
    color: #999;
}

#close-admin-panel {
    width: 100%;
    margin-top: 20px;
}

/* Адаптивность для админ-панели */
@media (max-width: 768px) {
    .admin-content {
        padding: 20px;
        margin: 20px;
        max-height: 90vh;
    }
    
    .admin-section {
        padding: 15px;
    }
    
    .user-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */

/* Общие мобильные стили */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    /* Улучшенная прокрутка на мобильных */
    * {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Шапка для мобильных */
    .header {
        padding: 10px 15px;
        position: sticky;
        top: 0;
        z-index: 100;
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.95);
    }
    
    .header-content {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .header h1 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .user-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .user-info span {
        font-size: 0.9rem;
    }
    
    /* Кнопки в шапке */
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        min-height: 36px;
    }
    
    .btn-admin {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    /* Основной контент */
    .main-content {
        padding: 15px;
    }
    
    .container {
        padding: 0;
    }
    
    /* Форма создания задач */
    .create-task-section {
        margin-bottom: 20px;
    }
    
    .create-task-section h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    input, textarea, select {
        padding: 12px;
        font-size: 16px; /* Предотвращает зум на iOS */
        border-radius: 8px;
    }
    
    /* Фильтры для мобильных */
    .filters {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .filter-group {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .filter-group label {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    /* Карточки задач */
    .task-card {
        margin-bottom: 15px;
        padding: 15px;
    }
    
    .task-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .task-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .task-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .task-priority, .task-status {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .task-description {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .task-authors {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }
    
    .task-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .task-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Модальное окно для мобильных */
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        max-height: 90vh;
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .modal-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .tab-btn {
        padding: 10px;
        font-size: 0.9rem;
        text-align: center;
    }
    
    .tab-content {
        padding: 15px;
    }
    
    /* Комментарии для мобильных */
    .comments-section {
        padding: 0;
    }
    
    .comments-header h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .comment-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .comment-form textarea {
        min-height: 80px;
    }
    
    .comment-item {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .comment-author {
        font-size: 0.9rem;
    }
    
    .comment-date {
        font-size: 0.8rem;
    }
    
    .comment-text {
        font-size: 0.9rem;
        margin: 8px 0;
    }
    
    /* Админ-панель для мобильных */
    .admin-panel {
        padding: 10px;
    }
    
    .admin-content {
        width: 100%;
        max-width: 100%;
        padding: 20px;
        margin: 0;
        max-height: 95vh;
    }
    
    .admin-content h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .admin-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .admin-section h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .users-list {
        max-height: 200px;
    }
    
    .user-item {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .user-name {
        font-size: 1rem;
    }
    
    .user-role {
        font-size: 0.8rem;
        padding: 3px 6px;
    }
    
    .user-date {
        font-size: 0.75rem;
    }
    
    /* Уведомления для мобильных */
    .notifications {
        top: 10px;
        left: 10px;
        right: 10px;
        transform: none;
    }
    
    .notification {
        padding: 12px 15px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .login-card {
        padding: 25px 20px;
        margin: 10px;
    }
    
    .login-card h1 {
        font-size: 2rem;
    }
    
    .header h1 {
        font-size: 1.3rem;
    }
    
    .task-card {
        padding: 12px;
    }
    
    .modal-content {
        border-radius: 10px;
    }
    
    .admin-content {
        padding: 15px;
    }
    
    .btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

/* Пейзажная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .modal-content {
        max-height: 85vh;
    }
    
    .admin-content {
        max-height: 90vh;
    }
    
    .login-card {
        max-width: 500px;
    }
}

/* Улучшения для сенсорных экранов */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
        box-shadow: none;
    }
    
    .btn:active {
        transform: scale(0.98);
        opacity: 0.8;
    }
    
    .task-card:hover {
        transform: none;
    }
    
    .task-card:active {
        transform: scale(0.99);
    }
    
    /* Увеличиваем области касания */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .tab-btn {
        min-height: 44px;
    }
    
    .comment-delete {
        min-height: 32px;
        min-width: 32px;
    }
}