:root {
    --bg: #0a0a0c;
    --card: #16161e;
    --primary: #bb86fc;
    --main-quest: #ff4757;
    --daily-quest: #2ed573;
    --side-quest: #1e90ff;
    --text: #e0e0e0;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

#app {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
}

/* CABECERA Y ESTADO */
.hero-status {
    background: var(--card);
    padding: 20px;
    border-bottom: 2px solid #222;
    display: flex;
    gap: 20px;
    align-items: center;
}

.hero-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.avatar {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.level-label {
    font-weight: bold;
    color: var(--primary);
    font-size: 0.9rem;
}

.gold-label {
    font-weight: bold;
    color: #ffd700;
    font-size: 0.9rem;
}

.bars {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bar-icon {
    font-size: 0.7rem;
    font-weight: bold;
    width: 25px;
}

.progress-bar {
    flex-grow: 1;
    height: 12px;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #333;
}

#hp-fill {
    background: var(--main-quest);
    height: 100%;
    transition: width 0.3s ease;
}

#xp-fill {
    background: var(--daily-quest);
    height: 100%;
    transition: width 0.3s ease;
}

/* NAVEGACIÓN */
.tab-bar {
    display: flex;
    background: #121212;
    position: sticky;
    top: 0;
    z-index: 100;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: none;
    color: #666;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.2s;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
    background: #1a1a1a;
}

/* CONTENIDO DE PESTAÑAS */
.content-area {
    padding: 20px;
    flex-grow: 1;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* TARJETAS Y FORMULARIOS */
.card {
    background: var(--card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333;
}

.card h2 {
    margin-top: 0;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #999;
}

input, select {
    width: 100%;
    padding: 12px;
    background: #000;
    border: 1px solid #444;
    color: white;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

input:focus, select:focus {
    border-color: var(--primary);
}

.primary-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}

.primary-btn:active {
    transform: scale(0.98);
}

/* LISTAS DE MISIONES */
.quest-group {
    margin-bottom: 25px;
}

.quest-group h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 4px solid #333;
}

.quest-group:nth-child(1) h3 { border-color: var(--main-quest); color: var(--main-quest); }
.quest-group:nth-child(2) h3 { border-color: var(--daily-quest); color: var(--daily-quest); }
.quest-group:nth-child(3) h3 { border-color: var(--side-quest); color: var(--side-quest); }

.task-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.task-item {
    background: #1c1c26;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #2a2a35;
    transition: 0.2s;
}

.task-item:hover {
    border-color: #444;
}

.task-item.completed {
    opacity: 0.4;
    filter: grayscale(1);
}

.task-info {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.status-icon {
    font-size: 1.2rem;
}

.delete-btn {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
    transition: 0.2s;
}
.delete-btn:hover {
    color: var(--main-quest);
}

/* ESTADÍSTICAS */
.stats-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

