/* Основные стили для ZOV Guard Mini App */

:root {
    --tg-theme-bg-color: #ffffff;
    --tg-theme-text-color: #000000;
    --tg-theme-hint-color: #999999;
    --tg-theme-link-color: #2481cc;
    --tg-theme-button-color: #2481cc;
    --tg-theme-button-text-color: #ffffff;
    --tg-theme-secondary-bg-color: #f1f1f1;
    
    --primary-color: #1e3a8a; /* Темно-синий */
    --success-color: #2563eb; /* Синий */
    --warning-color: #dc2626; /* Красный */
    --danger-color: #dc2626; /* Красный */
    --info-color: #3b5998; /* Средний синий */
    
    --header-height: 56px;
    --bottom-nav-height: 56px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--tg-theme-bg-color);
    color: var(--tg-theme-text-color);
    margin: 0;
    padding: 0;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    height: 100%;
}

/* Контейнер приложения */
.app-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Загрузчик */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--tg-theme-secondary-bg-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Хедер */
.app-header {
    height: var(--header-height);
    background: var(--tg-theme-bg-color);
    border-bottom: 1px solid var(--tg-theme-secondary-bg-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-content {
    height: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kpi-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--tg-theme-secondary-bg-color);
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
}

.kpi-badge i {
    font-size: 16px;
    color: var(--warning-color);
}

/* Основной контент */
.app-content {
    position: absolute;
    top: var(--header-height);
    bottom: var(--bottom-nav-height);
    left: 0;
    right: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background: #f5f5f5;
    -webkit-overflow-scrolling: touch;
}

/* Карта */
.map-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#map {
    width: 100%;
    height: 100%;
}

.map-control-btn {
    position: absolute;
    bottom: 140px;
    right: 16px;
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
}

.map-filters {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 1000;
}

.filter-chip {
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--tg-theme-secondary-bg-color);
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Панель заданий */
.tasks-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.1);
    transform: translateY(calc(100% - 120px));
    transition: transform 0.3s ease;
    max-height: 70vh;
    z-index: 50;
}

.tasks-panel.expanded {
    transform: translateY(0);
}

.panel-header {
    padding: 16px;
    border-bottom: 1px solid var(--tg-theme-secondary-bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.tasks-list {
    overflow-y: auto;
    max-height: calc(70vh - 60px);
}

.task-item {
    padding: 16px;
    border-bottom: 1px solid var(--tg-theme-secondary-bg-color);
    cursor: pointer;
    transition: background 0.2s;
}

.task-item:active {
    background: var(--tg-theme-secondary-bg-color);
}

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

.task-item-title {
    font-size: 16px;
    font-weight: 500;
    flex: 1;
}

.task-item-distance {
    font-size: 14px;
    color: var(--tg-theme-hint-color);
}

.task-item-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--tg-theme-hint-color);
}

.task-item-meta i {
    font-size: 16px;
    margin-right: 4px;
    vertical-align: middle;
}

/* Нижнее меню */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--tg-theme-hint-color);
    cursor: pointer;
    transition: color 0.2s;
}

.nav-item.active {
    color: #1e3a8a;
}

.nav-item i {
    font-size: 24px;
}

.nav-item span {
    font-size: 12px;
}

/* Кнопки */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:active {
    background: #1c5fa0;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.icon-btn:active {
    background: var(--tg-theme-secondary-bg-color);
}

/* Модальные окна */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--tg-theme-bg-color);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 16px;
    border-bottom: 1px solid var(--tg-theme-secondary-bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px;
    border-top: 1px solid var(--tg-theme-secondary-bg-color);
    display: flex;
    gap: 8px;
}

.modal-footer .btn {
    flex: 1;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--tg-theme-secondary-bg-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}


/* Детали задания */
.task-detail-section {
    margin-bottom: 16px;
}

.task-detail-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--tg-theme-hint-color);
}

.task-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.meta-item i {
    color: var(--primary-color);
}

/* Статусы */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.claimed {
    background: #e3f2fd;
    color: #1976d2;
}

.status-badge.submitted {
    background: #fbbf24;
    color: #1f2937;
    font-weight: 600;
}

.status-badge.approved {
    background: #10b981;
    color: white;
    font-weight: 600;
}

.status-badge.rejected {
    background: #ef4444;
    color: white;
    font-weight: 600;
}

/* Адаптивность */
@media (min-width: 768px) {
    .app-container {
        max-width: 768px;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }
}

/* Скрываем элементы по умолчанию */
.admin-only {
    display: none !important;
}

/* Показываем для админов */
body.is-admin .admin-only {
    display: flex !important;
}

/* Форма отчета */
.report-form .form-group {
    margin-bottom: 20px;
}

.media-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.media-preview img,
.media-preview video {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 16px;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Стили для модальных окон с формами */
.modal-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--tg-theme-text-color);
}

.modal-close:hover {
    opacity: 0.7;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--tg-theme-secondary-bg-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: var(--tg-theme-bg-color);
    color: var(--tg-theme-text-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Стили для файлового инпута */
input[type="file"] {
    cursor: pointer;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideIn 0.3s;
}

.notification.error {
    background: #e74c3c;
}

.notification.success {
    background: #27ae60;
}

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

/* Стили для аватарки профиля в модальном окне */
.profile-header {
    text-align: center;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--tg-theme-secondary-bg-color);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-avatar-placeholder i {
    font-size: 48px;
    color: var(--tg-theme-hint-color);
}

.profile-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

/* Стили для настроек */
.settings-section {
    margin-bottom: 24px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.setting-info h3, .setting-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
}

.setting-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Переключатель (switch) */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2563eb;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Радио-карточки */
.radio-card {
    display: block;
    margin-bottom: 16px;
    cursor: pointer;
    position: relative;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-content {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    background: white;
}

.radio-card input[type="radio"]:checked + .radio-content {
    border-color: #2563eb;
    background: #f0f7ff;
}

.radio-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.radio-header i {
    color: #2563eb;
}

.radio-description {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.radio-description strong {
    color: #2563eb;
}

.btn-link {
    background: none;
    border: none;
    color: #2563eb;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-size: 14px;
}

.btn-link:hover {
    color: #1e3a8a;
}

/* Админская панель */
.admin-page {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e0e0e0;
    overflow-x: auto;
}

.admin-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    background: none;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.admin-tab:hover {
    color: #2563eb;
    background: #f0f7ff;
}

.admin-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    font-weight: 600;
}

.admin-tab i {
    font-size: 20px;
}

.admin-content {
    min-height: 400px;
}

.admin-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-section h2,
.admin-section h3,
.admin-section p,
.admin-section span,
.admin-section label {
    color: #1f2937;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-section-header h2 {
    margin: 0;
    font-size: 24px;
    color: #1e3a8a;
    font-weight: 600;
}

.filter-buttons {
    display: flex;
    gap: 8px;
}

/* Админские карточки */
.admin-task-card, .admin-report-card, .admin-ticket-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.admin-task-card:hover, .admin-report-card:hover, .admin-ticket-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.task-header h3, .report-header h3, .ticket-header h3 {
    margin: 0;
    font-size: 18px;
}

.task-status, .ticket-status {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

.status-active { background: #3b82f6; color: white; }
.status-completed { background: #10b981; color: white; }
.status-cancelled { background: #ef4444; color: white; }
.status-open { background: #fbbf24; color: #1f2937; }
.status-closed { background: #10b981; color: white; }
.status-resolved { background: #10b981; color: white; font-weight: 600; }
.status-pending { background: #fbbf24; color: #1f2937; }
.status-approved { background: #10b981; color: white; }
.status-rejected { background: #ef4444; color: white; }

.task-meta {
    display: flex;
    gap: 16px;
    margin: 12px 0;
    font-size: 14px;
    color: #666;
}

.task-meta span, .report-location {
    display: flex;
    align-items: center;
    gap: 4px;
}

.task-meta i, .report-location i {
    font-size: 18px;
}

.task-actions, .report-actions, .ticket-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.report-user, .ticket-user {
    color: #666;
    font-size: 14px;
    margin: 4px 0;
}

.report-date {
    color: #999;
    font-size: 14px;
}

.report-media {
    display: flex;
    gap: 12px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.report-media img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.report-media img:hover {
    transform: scale(1.05);
}

.admin-response {
    background: #f0f7ff;
    border-left: 3px solid #2563eb;
    padding: 12px;
    margin-top: 12px;
    border-radius: 4px;
}

/* Таблица пользователей */
.users-table table {
    background: white;
}

.users-table th {
    background: #f8fafc;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
}

.users-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.users-table tr:hover {
    background: #f8fafc;
}

.filters-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.filters-bar .form-control {
    flex: 1;
}

/* Кнопки действий */
.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Wizard (пошаговая форма) */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    padding: 0 20px;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
}

.wizard-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.wizard-step.completed:not(:last-child)::after {
    background: #2563eb;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    z-index: 1;
    transition: all 0.3s ease;
}

.wizard-step.active .step-number {
    background: #2563eb;
    color: white;
    transform: scale(1.1);
}

.wizard-step.completed .step-number {
    background: #10b981;
    color: white;
}

.wizard-step span {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.wizard-step.active span {
    color: #2563eb;
    font-weight: 600;
}

.wizard-content {
    padding: 24px 0;
}

.wizard-content h3 {
    margin: 0 0 20px 0;
    color: #1e3a8a;
    font-size: 20px;
}

.wizard-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.wizard-footer .btn {
    min-width: 120px;
}

.task-preview {
    margin: 20px 0;
}

/* Участники задания */
.task-participants {
    margin: 24px 0;
    padding: 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.task-participants h4 {
    margin: 0 0 16px 0;
    color: #1e3a8a;
}

.participant-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 8px;
}

.participant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.participant-status {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Фильтры заданий */
.task-filters {
    display: flex;
    gap: 8px;
    margin: 16px 0;
    overflow-x: auto;
    padding-bottom: 8px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: white;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.filter-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* Карточки заданий */
.task-card, .my-task-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-card:hover, .my-task-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.task-card h3, .my-task-card h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #1e3a8a;
}

.task-card p, .my-task-card p {
    color: #666;
    margin: 8px 0;
    line-height: 1.5;
}

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

.task-badge {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.media-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.media-preview img {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Фикс контраста - убираем белый текст на белом фоне */
.form-control {
    color: #1f2937 !important;
    background: white !important;
}

.form-control::placeholder {
    color: #6b7280 !important;
    opacity: 1;
}

/* Текст в карточках */
.task-card p,
.my-task-card p,
.admin-card p,
.report-status p {
    color: #374151 !important;
}

.task-card h3,
.my-task-card h3,
.admin-card h3 {
    color: #1f2937 !important;
}

/* Мета информация */
.task-meta,
.task-meta span,
.report-user,
.report-date,
.report-location {
    color: #6b7280 !important;
}

/* Кнопки фильтров */
.filter-btn {
    color: #374151 !important;
    background: white !important;
}

.filter-btn:hover {
    color: #2563eb !important;
}

.filter-btn.active {
    color: white !important;
    background: #2563eb !important;
}

/* Админ табы */
.admin-tab {
    color: #374151 !important;
}

.admin-tab:hover,
.admin-tab.active {
    color: #2563eb !important;
}

/* Убираем возможные проблемы с disabled элементами */
input:disabled,
textarea:disabled,
select:disabled {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    opacity: 1 !important;
}

/* Статусные бейджи */
.status-badge,
.task-badge {
    font-weight: 600 !important;
}

/* Улучшения для статусов задач */
.status-in_progress {
    background: #dbeafe !important;
    color: #1e40af !important;
}

.status-revision_requested {
    background: #fbbf24 !important;
    color: #1f2937 !important;
    font-weight: 600 !important;
}

/* Анимация для кнопок */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

/* Улучшение для report-status блоков */
.report-status {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.report-status:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.5s ease;
}

.report-status:hover:before {
    left: 100%;
}

/* Карточки заданий - улучшение hover эффекта */
.task-card:hover,
.my-task-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Иконки в статусах */
.report-status i.material-icons {
    vertical-align: middle;
    margin-right: 8px;
}

/* Прогресс индикатор для pending статуса */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.status-pending i.material-icons {
    animation: pulse 2s infinite;
}

/* FAQ улучшения */
.faq-item .faq-answer {
    max-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

.faq-item.expanded .faq-answer {
    max-height: 500px !important;
    padding: 0 16px 16px 52px !important;
}

/* Фиксим отступы в модальных окнах */
.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

.modal-body {
    padding: 24px !important;
}

/* Улучшение форм */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    color: #374151;
}

/* Красивые чекбоксы */
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 8px;
}
