/* Переработанный дизайн ZOV Гвардии */

/* Хедер с градиентом триколора */
.app-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    padding: 12px 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.header-user i {
    font-size: 24px;
    opacity: 0.9;
}

#header-username {
    font-size: 16px;
    font-weight: 500;
    color: white;
}

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

.points-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.points-badge i {
    color: white;
    font-size: 18px;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.icon-btn:active {
    transform: scale(0.95);
}

/* Улучшенный пользовательский интерфейс */
.user-interface {
    padding: 16px;
    background: #f5f7fa;
    min-height: calc(100vh - 56px);
    overflow-y: auto;
}

/* Карточка профиля */
.profile-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.profile-role {
    margin: 4px 0 0 0;
    color: #7f8c8d;
    font-size: 14px;
}

/* Статистика в сетке */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid #e8ecf0;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-card i {
    font-size: 28px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin: 4px 0;
}

.stat-label {
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Быстрые действия */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.action-card {
    background: white;
    border: none;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.action-card:active {
    transform: scale(0.98);
}

.action-card i {
    font-size: 32px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.action-card span {
    font-size: 13px;
    color: #2c3e50;
    font-weight: 500;
}

/* Секции контента */
.section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8ecf0;
}

.section-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.btn-text {
    background: none;
    border: none;
    color: #1e3a8a;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

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

/* Список заданий */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    cursor: pointer;
}

.task-item:hover {
    background: #f0f2f5;
    transform: translateX(4px);
}

.task-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.task-info {
    flex: 1;
}

.task-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 4px 0;
}

.task-meta {
    font-size: 13px;
    color: #7f8c8d;
}

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

.task-status.active {
    background: #e3f2fd;
    color: #1976D2;
}

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

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

/* График активности */
.activity-chart {
    height: 140px;
    background: #f8f9fb;
    border-radius: 12px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 20px 10px 10px;
    position: relative;
}

.activity-bar {
    width: 12%;
    background: linear-gradient(to top, #1e3a8a, #3b5998);
    border-radius: 6px 6px 0 0;
    transition: height 0.3s ease;
    position: relative;
}

.activity-bar::after {
    content: attr(data-day);
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #7f8c8d;
}

/* Карточка доступного задания */
.available-task-card {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2); }
    50% { box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4); }
}

.task-card-large {
    background: white;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.task-card-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.task-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.task-icon-large {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.task-info h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    color: #2c3e50;
}

.task-address {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

.task-details {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.task-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #555;
}

.task-detail i {
    font-size: 18px;
    color: #1e3a8a;
}

.proximity-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: #e3f2fd;
    border-radius: 20px;
    font-size: 13px;
    color: #1976D2;
}

.proximity-badge i {
    font-size: 16px;
}

#available-task-section {
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

#available-task-section.show {
    opacity: 1;
    transform: translateY(0);
}

/* Мобильная адаптация */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .task-details {
        flex-wrap: wrap;
        gap: 12px;
    }
}
