/**
 * ajustedados.css - Estilos da Lista de Missões (Operador)
 * Visual gamificado com tema dark premium
 */

:root {
    --game-bg-dark: #0a0e17;
    --game-bg-main: #0f172a;
    --game-surface-1: #1e293b;
    --game-surface-2: #334155;
    --game-border: #475569;
    --game-primary: #3b82f6;
    --game-success: #10b981;
    --game-warning: #f59e0b;
    --game-text-primary: #f8fafc;
    --game-text-secondary: #94a3b8;
    --game-text-muted: #64748b;
}

.game-container {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--game-bg-dark) 0%, var(--game-bg-main) 100%);
    min-height: 100vh;
    color: var(--game-text-primary);
}

.app-container {
    max-width: 640px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #334155;
    position: sticky;
    top: 0;
    z-index: 100;
}

.btn-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #475569;
    border-radius: 12px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-back:hover {
    background: #334155;
    color: #f8fafc;
    border-color: #64748b;
}

.header-content {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
}

.header-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.125rem;
}

.header-subtitle {
    font-size: 0.75rem;
    color: #64748b;
}

.btn-refresh {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #475569;
    border-radius: 12px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-refresh:hover {
    background: #334155;
    color: #f8fafc;
    border-color: #3b82f6;
}

.btn-refresh.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Main Content */
.app-content {
    flex: 1;
    padding: 1.5rem;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    flex: 1;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 900;
    color: #f8fafc;
}

.stat-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-top: 0.25rem;
}

.stat-card.priority .stat-value {
    color: #f59e0b;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
}

/* Mission Cards */
.missions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mission-card {
    display: block;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 1rem;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.mission-card:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.3);
}

.mission-card:hover::before {
    opacity: 1;
}

/* Priority Mission */
.mission-card.priority {
    border-color: #f59e0b;
    animation: priority-pulse 2s infinite;
}

.mission-card.priority::before {
    background: linear-gradient(90deg, transparent, #f59e0b, transparent);
    opacity: 1;
}

@keyframes priority-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(245, 158, 11, 0.4);
    }
}

.mission-card-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.mission-icon {
    width: 56px;
    height: 56px;
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mission-icon i {
    font-size: 1.5rem;
}

.mission-icon.priority i {
    color: #f59e0b;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.mission-info {
    flex: 1;
    min-width: 0;
}

.mission-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mission-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mission-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0.375rem;
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.mission-badge.priority {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.mission-badge.fila {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.mission-badge.conjunto {
    background: rgba(6, 182, 212, 0.2);
    color: #22d3ee;
}

.mission-date {
    font-size: 0.7rem;
    color: #64748b;
}

.mission-arrow {
    color: #475569;
    transition: transform 0.2s;
}

.mission-card:hover .mission-arrow {
    transform: translateX(4px);
    color: #3b82f6;
}

/* Progress indicator on card */
.mission-progress {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.progress-bar-mini {
    flex: 1;
    height: 6px;
    background: #0f172a;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-mini-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    border-radius: 3px;
    transition: width 0.5s;
}

.progress-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
}

/* Empty State */
.empty-state {
    padding: 4rem 2rem;
    text-align: center;
}

.empty-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.empty-icon i {
    font-size: 2.5rem;
    color: #475569;
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-text {
    color: #64748b;
    max-width: 280px;
    margin: 0 auto;
}