/* style.css - Odoo Dark Mode Exact Clone (Versión Completa) */

:root {
    --bg-main: #1e2029;
    --bg-panel: #262936;
    --text-main: #d1d5db;
    --text-muted: #9ca3af;
    --accent-pink: #d15688;
    --accent-blue: #00a09d;
    --border-color: #3b3f51;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    margin: 0; 
    padding: 20px;
}

/* --- Contenedor Principal (La Tarjeta) --- */
.o_form_view {
    background: var(--bg-panel);
    border-radius: 5px;
    max-width: 1100px;
    margin: auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    overflow: hidden; /* Mantiene los bordes redondeados limpios */
}

/* --- Statusbar (Barra Superior tipo Odoo con Scroll Horizontal) --- */
.o_statusbar {
    display: flex;
    background: #1e2029;
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    align-items: center;
    overflow-x: auto; /* Permite deslizar a los lados */
    scrollbar-width: none; /* Oculta la barra de scroll en Firefox */
}

.o_statusbar::-webkit-scrollbar {
    display: none; /* Oculta la barra de scroll en Chrome/Safari/Edge */
}

.o_stage {
    flex: 0 0 auto; /* Evita que las flechas se aplasten, forzando el scroll */
    background: #2a2d3d;
    color: var(--text-muted);
    padding: 10px 20px 10px 30px;
    position: relative;
    clip-path: polygon(calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%, 15px 50%, 0 0);
    margin-left: -15px;
    font-size: 0.85em;
    font-weight: bold;
    cursor: pointer;
    border-right: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.o_stage:first-child { 
    clip-path: polygon(calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%, 0 50%, 0 0); 
    margin-left: 0; 
    padding-left: 20px; 
}

.o_stage.active { 
    background: var(--accent-blue); 
    color: white; 
}

.o_stage:hover:not(.active) {
    background: #363a4d; /* Un sutil efecto al pasar el ratón */
}

/* --- Nombre Principal --- */
.o_form_sheet { 
    padding: 30px; 
}

.o_name_input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--accent-pink);
    color: white;
    font-size: 2.5em;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.o_name_input:focus { 
    outline: none; 
    border-bottom-color: white; 
}

/* --- Pestañas (Notebook) --- */
.o_notebook {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.o_tab {
    padding: 10px 20px;
    color: var(--text-muted);
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: color 0.2s ease, border-bottom 0.2s ease;
}

.o_tab.active {
    color: var(--accent-pink);
    border-bottom: 2px solid var(--accent-pink);
}

.o_tab:hover:not(.active) {
    color: white;
}

/* --- Cuadrícula de Datos (Grid) --- */
.o_group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.o_field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.o_field label {
    font-size: 0.9em;
    font-weight: bold;
    width: 40%;
}

.o_field input, .o_field textarea, .o_field select {
    width: 55%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: white;
    padding: 5px;
    font-family: inherit;
}

.o_field input:focus, .o_field textarea:focus, .o_field select:focus { 
    outline: none; 
    border-bottom: 1px solid var(--accent-pink); 
}

/* Para que los selects no se vean blancos al abrirlos */
.o_field select option {
    background-color: var(--bg-panel);
    color: white;
}

/* --- Botones --- */
.o_btn_upload { 
    background: #6b3a5b; 
    color: white; 
    padding: 5px 15px; 
    border: none; 
    border-radius: 3px; 
    cursor: pointer; 
    font-size: 0.8em;
    transition: background 0.2s ease;
}

.o_btn_upload:hover {
    background: #8e4c79;
}

.btn-save { 
    background: var(--accent-blue); 
    color: white; 
    padding: 12px 20px; 
    border: none; 
    border-radius: 4px; 
    font-weight: bold; 
    cursor: pointer; 
    margin-top: 30px; 
    width: 100%;
    font-size: 1em;
    transition: background 0.2s ease;
}

.btn-save:hover {
    background: #008784;
}