/* Estilos principales para Mi Diario de Trading */

/* Variables de colores */
:root {
    --primary-color: #1976d2;
    --secondary-color: #424242;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --info-color: #2196f3;
    --light-color: #f5f5f5;
    --dark-color: #212121;
}

/* Estilos generales */
body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: #f9f9f9;
}

/* Cabecera */
header {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
}

/* Pie de página */
footer {
    margin-top: 3rem;
}

/* Tarjetas */
.card {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-radius: 8px 8px 0 0;
}

/* Botones */
.btn {
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1565c0;
    border-color: #1565c0;
}

/* Formularios */
.form-control {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.25);
}

/* Calendario */
#mini-calendar {
    font-size: 0.9rem;
}

#mini-calendar .calendar-day {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 2px;
    border-radius: 50%;
    cursor: pointer;
}

#mini-calendar .calendar-day:hover {
    background-color: #e3f2fd;
}

#mini-calendar .calendar-day.active {
    background-color: var(--primary-color);
    color: white;
}

#mini-calendar .calendar-day.has-events {
    border: 2px solid var(--primary-color);
}

/* Reloj */
#clock {
    font-size: 2rem;
    font-weight: 300;
}

#date {
    font-size: 1rem;
}

/* Noticias */
.news-item {
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Flujos de trabajo */
.flow-container {
    min-height: 500px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fafafa;
    padding: 1rem;
}

.flow-node {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flow-node:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.flow-node.decision {
    border-left: 4px solid var(--warning-color);
}

.flow-node.action {
    border-left: 4px solid var(--primary-color);
}

.flow-node.selection {
    border-left: 4px solid var(--info-color);
}

/* Historial y reportes */
.calendar-container {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stats-card {
    text-align: center;
    padding: 0.25rem;
}

.stats-card .stats-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.stats-card .stats-value {
    font-size: 1rem;
    font-weight: 500;
}

.stats-card .stats-label {
    font-size: 1rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    #clock {
        font-size: 1.5rem;
    }
    
    .flow-container {
        min-height: 300px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}
/* adicionales estilos calendario */
/* Estilos para calendario */
.calendar-legend-item{
width:16px;
height:16px;
border-radius:3px;
display:inline-block;
}
.day-with-activity{
background-color:#d4edda;
border-color:#28a745;
}
/* Estilos para calendario */
.calendar-legend-item{
width:16px;
height:16px;
border-radius:3px;
display:inline-block;
}
.day-with-activity{
background-color:#d4edda;
border-color:#28a745;
}
/* Estilos para gráficos */
.chart-container{
position:relative;
height:400px;}
/* Estilos responsivos */
@media(max-width:768px){
    .calendar-table td{
    height:60px;
    padding:4px;
    font-size:0.875rem;
    }
}
/* usos de mensajes */

.alert-info {
    background-color: #e8f4fd;
    border-color: #b6e0fe;
    color: #0c5460;
}

.alert-success {
    background-color: #e6f9ec;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #fcebea;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff8e5;
    border-color: #ffeeba;
    color: #856404;
}

/* Botón de cierre para que combine mejor */
.alert .btn-close {
    filter: invert(0.5); /* mejor visibilidad en fondos claros */
}

/* Margen y bordes uniformes */
.alert {
    border-radius: 0;
    margin-bottom: 0;
    padding: 1rem;
    font-size: 1.1rem;
    text-align: center;
}
.toast-small {
  min-width: 250px;
  max-width: 400px;
  font-size: 1rem;
  padding: 0.75rem;
}
.custom-tooltip {
  --bs-tooltip-bg: blue;
  --bs-tooltip-color: white;
}
.subindice {
    font-size: 0.4em;  /* tamaño más pequeño */
    vertical-align: sub; /* lo coloca como superíndice */
    color: rgb(26, 255, 0); /* opcional, para destacar */
    margin-left: 1px;
}
/* css del calendario */
/* Ajusta la altura de las celdas del mes */
.fc-daygrid-day-frame {
    max-height: 30px !important;  /* Puedes bajar incluso a 40px si te gusta más compacto */
    padding: 2px !important;
}

/* Opcional: reducir padding del contenedor */
.fc-daygrid-day-top {
    padding: 2px 4px !important;
}
/* Reduce separación entre botones y título */
.fc-header-toolbar {
    margin-bottom: 4px !important;
    font-size: 0.85rem;
}

/* Compacta botones */
.fc .fc-button {
    padding: 2px 6px !important;
    font-size: 0.75rem !important;
    height: 26px !important;
}
/* Estilo para la vista de lista diaria */
.fc-listDay-view {
    height: 215px !important;  /* O lo que consideres adecuado */
    overflow-y: auto !important;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}
.registro-timeline {
    height: 400px !important;  /* O lo que consideres adecuado */
    overflow-y: auto !important;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}
.note-editor.note-frame {
    width: 100% !important;
}

/* Utilidades */
.text-primary { color: var(--primary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-info { color: var(--info-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-info { background-color: var(--info-color) !important; }
