/* 
 * Consola de Gestión de Suscripciones - Estética Premium
 * Diseñado para el Rol Creador
 */

.creator-subs-container {
    animation: fadeIn 0.5s ease-out;
}

.subs-header-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(15, 23, 42, 0.4);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.subs-search-box {
    position: relative;
    flex: 1;
}

.subs-search-box i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.subs-search-box input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 3rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.subs-search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
    background: rgba(30, 41, 59, 0.8);
}

.subs-filter-select {
    padding: 0.85rem 1rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-main);
    cursor: pointer;
    min-width: 180px;
    transition: all 0.3s ease;
}

.subs-filter-select:hover {
    border-color: var(--primary);
}

/* User Card Styles */
.subs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.user-sus-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.user-sus-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(30, 41, 59, 0.6);
}

.user-sus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.user-sus-card:hover::before {
    opacity: 1;
}

.user-sus-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.user-sus-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.user-sus-details h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main);
}

.user-sus-details p {
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.plan-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.plan-basico {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.plan-intermedio {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.plan-empresarial {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.status-label {
    color: var(--text-muted);
}

.status-value {
    font-weight: 500;
    color: var(--text-light);
}

.status-value.expired {
    color: #ef4444;
}

.status-value.trial {
    color: #3b82f6;
}

.status-value.paid {
    color: #10b981;
}

.card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-approve {
    flex: 1;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    padding: 0.75rem;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-approve:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Empty State */
.subs-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    background: rgba(30, 41, 59, 0.2);
    border-radius: 24px;
    border: 2px dashed var(--border);
}

.subs-empty i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}