* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 100%);
    color: #e4e4e7;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

header {
    text-align: center;
    padding: 40px 0 30px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.subtitle {
    color: #9ca3af;
    font-size: 1rem;
}

.status-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.status-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.status-card:hover {
    transform: translateY(-2px);
    border-color: rgba(102, 126, 234, 0.5);
}

.status-label {
    color: #9ca3af;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.status-value {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
}

.listas-section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #e4e4e7;
}

.listas-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lista-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: border-color 0.2s, background 0.2s;
}

.lista-item:hover {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.lista-info {
    flex: 1;
    min-width: 0;
}

.lista-nombre {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 6px;
    color: #e4e4e7;
    word-break: break-all;
}

.lista-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: #9ca3af;
}

.lista-acciones {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e4e4e7;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

.error {
    text-align: center;
    padding: 40px;
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
    pointer-events: none;
    z-index: 1000;
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
}

footer {
    text-align: center;
    padding: 40px 0 20px;
    color: #6b7280;
    font-size: 0.85rem;
}

footer a {
    color: #667eea;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .lista-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .lista-acciones {
        width: 100%;
    }
    
    .btn {
        flex: 1;
        justify-content: center;
    }
}