/**
 * designacoes_lista.css - Estilos do Painel Admin (Lista)
 * Visual gamificado dark premium para gestor
 */

:root {
    --admin-bg: #0f172a;
    --admin-surface: #1e293b;
    --admin-surface-2: #334155;
    --admin-border: #475569;
    --admin-primary: #3b82f6;
    --admin-success: #10b981;
    --admin-warning: #f59e0b;
    --admin-danger: #ef4444;
    --admin-text: #f8fafc;
    --admin-muted: #64748b;
}

.admin-container {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0e17 0%, var(--admin-bg) 100%);
    min-height: 100vh;
    color: var(--admin-text);
    padding: 1.5rem;
}

/* Header */
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-title h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.admin-title-badge {
    background: linear-gradient(135deg, var(--admin-primary), #2563eb);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.admin-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-admin {
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-admin-primary {
    background: linear-gradient(135deg, var(--admin-primary), #2563eb);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-admin-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-admin-success {
    background: linear-gradient(135deg, var(--admin-success), #059669);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-admin-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-admin-secondary {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    color: var(--admin-text);
}

.btn-admin-secondary:hover {
    background: var(--admin-surface-2);
    border-color: var(--admin-muted);
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s;
}

.stat-box:hover {
    border-color: var(--admin-primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.125rem;
}

.stat-icon.total {
    background: rgba(59, 130, 246, 0.15);
    color: var(--admin-primary);
}

.stat-icon.active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--admin-success);
}

.stat-icon.priority {
    background: rgba(245, 158, 11, 0.15);
    color: var(--admin-warning);
}

.stat-icon.done {
    background: rgba(148, 163, 184, 0.15);
    color: var(--admin-muted);
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--admin-muted);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 0.75rem;
    color: var(--admin-text);
    font-size: 0.875rem;
}

.search-box input:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--admin-muted);
}

.filter-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 0.625rem 1rem;
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 2rem;
    color: var(--admin-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip:hover {
    border-color: var(--admin-muted);
    color: var(--admin-text);
}

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

/* Mission Table */
.missions-table {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 1rem;
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1.5fr 1fr 100px;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--admin-border);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--admin-muted);
}

.table-row {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1.5fr 1fr 100px;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--admin-border);
    align-items: center;
    transition: background 0.2s;
    cursor: pointer;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background: rgba(59, 130, 246, 0.05);
}

.row-mission {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.row-icon {
    width: 44px;
    height: 44px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--admin-primary);
    flex-shrink: 0;
}

.row-icon.priority {
    background: rgba(245, 158, 11, 0.15);
    color: var(--admin-warning);
    animation: icon-pulse 2s infinite;
}

@keyframes icon-pulse {

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

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

.row-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--admin-text);
}

.row-info p {
    font-size: 0.75rem;
    color: var(--admin-muted);
    margin: 0;
}

.row-type {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--admin-muted);
}

/* Progress */
.row-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.progress-bar-sm {
    flex: 1;
    height: 6px;
    background: var(--admin-bg);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-sm-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--admin-primary), #06b6d4);
    border-radius: 3px;
}

.progress-bar-sm.complete .progress-bar-sm-fill {
    background: linear-gradient(90deg, var(--admin-success), #34d399);
}

.progress-text {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--admin-text);
    white-space: nowrap;
}

/* Operators */
.row-operators {
    display: flex;
    align-items: center;
}

.operator-avatars {
    display: flex;
}

.operator-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--admin-surface-2);
    border: 2px solid var(--admin-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--admin-text);
    margin-left: -8px;
}

.operator-avatar:first-child {
    margin-left: 0;
}

.operator-avatar.more {
    background: var(--admin-primary);
    color: white;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.pending {
    background: rgba(100, 116, 139, 0.2);
    color: var(--admin-muted);
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--admin-success);
}

.status-badge.priority {
    background: rgba(245, 158, 11, 0.2);
    color: var(--admin-warning);
    animation: badge-glow 1.5s infinite alternate;
}

.status-badge.complete {
    background: rgba(59, 130, 246, 0.2);
    color: var(--admin-primary);
}

@keyframes badge-glow {
    from {
        box-shadow: 0 0 5px rgba(245, 158, 11, 0.3);
    }

    to {
        box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
    }
}

/* Actions */
.row-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--admin-border);
    color: var(--admin-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--admin-surface-2);
    color: var(--admin-text);
    border-color: var(--admin-muted);
}

.btn-icon.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--admin-danger);
    border-color: var(--admin-danger);
}

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

.empty-icon {
    width: 80px;
    height: 80px;
    background: var(--admin-surface-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.empty-icon i {
    font-size: 2rem;
    color: var(--admin-muted);
}

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

.empty-text {
    color: var(--admin-muted);
    max-width: 350px;
    margin: 0 auto 1.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .table-header {
        display: none;
    }

    .table-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1.25rem;
    }

    .row-mission {
        order: 1;
    }

    .row-progress {
        order: 2;
    }

    .row-operators {
        order: 3;
    }

    .row-status {
        order: 4;
    }

    .row-actions {
        order: 5;
        justify-content: flex-end;
    }
}