/* dashboard.css - Estilos del Panel de Usuario */

.dashboard-container {
    max-width: 1000px;
    margin: 100px auto 50px;
    padding: 0 20px;
    min-height: 80vh;
}

/* --- PERFIL HEADER --- */
.profile-card {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
}

.profile-cover {
    height: 200px;
    background: linear-gradient(135deg, #007CF0, #00DFD8); /* Banner por defecto */
    background-size: cover;
    background-position: center;
}

.profile-content {
    padding: 20px 30px;
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin-top: -60px; /* Subir contenido sobre el banner */
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid #0a0a0a;
    background: #111;
    object-fit: cover;
}

.profile-text {
    flex: 1;
    margin-bottom: 10px;
}

.profile-text h1 {
    margin: 0;
    font-size: 2rem;
    color: white;
    font-weight: 800;
}

.badges {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.user-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #ccc;
}

.edit-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: 0.2s;
}
.edit-btn:hover { background: rgba(255, 255, 255, 0.2); }

/* --- PESTAÑAS (TABS) --- */
.history-section {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 20px;
    padding: 20px;
    min-height: 400px;
}

.tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: #666;
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 20px;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
}

.tab-btn:hover { color: white; }

.tab-btn.active {
    color: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color, #007CF0);
    border-radius: 3px 3px 0 0;
}

.clear-btn {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid #dc3545;
    padding: 5px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}
.clear-btn:hover { background: #dc3545; color: white; }

/* --- CONTENIDO GRID --- */
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.history-item {
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px;
    position: relative;
    transition: 0.2s;
    text-align: center;
}
.history-item:hover { border-color: #555; transform: translateY(-3px); }

.history-item img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.delete-item-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #dc3545;
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex; align-items: center; justify-content: center;
}

.empty-msg {
    text-align: center;
    color: #666;
    margin-top: 50px;
    width: 100%;
    grid-column: 1 / -1;
}

/* --- MODALES FORMULARIO --- */
.input-group { margin-bottom: 15px; text-align: left; }
.input-group label { display: block; color: #888; font-size: 0.85rem; margin-bottom: 5px; }
.input-group input { 
    width: 100%; background: #050505; border: 1px solid #333; color: white; 
    padding: 10px; border-radius: 8px; box-sizing: border-box; 
}
.btn-save { 
    width: 100%; padding: 12px; background: var(--primary-color, #007CF0); 
    border: none; border-radius: 8px; color: white; font-weight: bold; cursor: pointer; 
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .profile-content { flex-direction: column; align-items: center; text-align: center; margin-top: -60px; }
    .profile-text { width: 100%; }
    .badges { justify-content: center; }
    .tabs-header { flex-direction: column; gap: 15px; }
}