﻿/* ===================================================
   Perfil.razor.css — extiende upload-root existente
   =================================================== */

/* --- SIDEBAR FOOTER (usuario + acciones) --- */
.upload-root .sidebar {
    display: flex;
    flex-direction: column;
}

.upload-root .sidebar-nav {
    flex: 1;
}

.upload-root .sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.upload-root .sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.upload-root .sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(45deg, #059669, #10b981);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.upload-root .sidebar-user-info {
    min-width: 0;
}

.upload-root .sidebar-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-root .sidebar-user-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.upload-root .sidebar-footer-actions {
    display: flex;
    gap: 6px;
}

.upload-root .sidebar-collapse-btn,
.upload-root .sidebar-logout-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: rgba(255,255,255,0.7);
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .upload-root .sidebar-collapse-btn:hover,
    .upload-root .sidebar-logout-btn:hover {
        background: rgba(255,255,255,0.2);
        color: white;
    }

/* --- TARJETA DE PERFIL --- */
.profile-card {
    background: white;
    border-radius: 20px;
    padding: 30px 40px;
    box-shadow: 0 10px 40px rgba(220, 225, 240, 0.7);
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

/* Header del usuario con avatar + nombre + badge */
.profile-user-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f1f5f9;
}

.profile-avatar-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(45deg, #1e3a8a, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.6rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

.profile-user-meta {
    flex: 1;
}

.profile-user-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 4px 0;
}

.profile-user-email {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-email-icon {
    font-style: normal;
}

/* Badge de estado */
.status-badge {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

    .status-badge.active {
        background: rgba(16, 185, 129, 0.12);
        color: #059669;
        border: 1px solid rgba(16, 185, 129, 0.25);
    }

/* Grid de formulario */
.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-label-icon {
    font-style: normal;
}

.form-input {
    width: 100%;
    padding: 11px 15px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #1f2937;
    background: #f8fafc;
    transition: all 0.2s ease;
    outline: none;
    font-family: sans-serif;
}

    .form-input:focus {
        border-color: #2563eb;
        background: white;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
    }

    .form-input::placeholder {
        color: #94a3b8;
    }

/* --- SUSCRIPCIÓN --- */
.subscription-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.subscription-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subscription-label {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.subscription-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .profile-card {
        padding: 20px;
    }

    .profile-form-grid {
        grid-template-columns: 1fr;
    }

    .subscription-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .profile-user-header {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .subscription-grid {
        grid-template-columns: 1fr;
    }
}
