* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: #f0f2f5;
    font-family: 'Segoe UI', Roboto, sans-serif;
    padding: 24px 20px;
    color: #1a2634;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
}
.header {
    text-align: center;
    margin-bottom: 24px;
}
.header h1 {
    font-size: 1.9rem;
    font-weight: 600;
    background: linear-gradient(135deg, #0b2b3b, #1a5f7a);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.badge-day {
    display: inline-block;
    background: #e9ecef;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.8rem;
    margin-top: 8px;
}
.info-bar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.patrimonio-card, .stop-card {
    background: white;
    padding: 12px 20px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e2e8f0;
}
.patrimonio-card strong, .stop-card strong {
    font-size: 1.4rem;
    color: #1e7e5e;
}
.small-btn {
    background: #eef2f9;
    border: none;
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8rem;
}
.dashboard {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    margin-bottom: 30px;
}
@media (max-width: 900px) {
    .dashboard { grid-template-columns: 1fr; }
}
.checklists-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.accordion-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
    cursor: pointer;
}
.accordion-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f3b4f;
}
.accordion-icon {
    transition: transform 0.2s;
}
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.accordion-body.active {
    max-height: 600px;
    transition: max-height 0.4s ease-in;
}
.card-body {
    padding: 16px 22px 20px;
    border-top: 1px solid #eef2f6;
}
.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}
.checklist-item input {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: #1e7e5e;
}
.news-card, .markets-section .card, .stocks-section .card, .suggestions-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}
.card-header {
    padding: 16px 22px;
    border-bottom: 2px solid #eef2f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.card-header h2 {
    font-size: 1.3rem;
}
.news-links {
    list-style: none;
}
.news-links li {
    margin-bottom: 12px;
}
.news-links a {
    text-decoration: none;
    color: #1a5f7a;
    font-weight: 500;
}
/* ========== GRÁFICO DE HORÁRIOS HARMONIOSO ========== */
.market-timeline {
    margin: 20px 0;
    overflow-x: auto;
}
.timeline-axis {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #4a5b6e;
    margin-bottom: 20px;
    padding: 0 4px;
}
.timeline-axis span {
    flex: 1;
    text-align: center;
    font-weight: 500;
}
.market-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
}
.market-name {
    width: 100px;
    font-weight: 600;
    font-size: 0.9rem;
}
.bar-container {
    flex: 1;
    height: 32px;
    background: #e9edf2;
    border-radius: 20px;
    position: relative;
    overflow: visible;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}
.bar {
    position: absolute;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, #2c9c6e, #1e7e5e);
    border-radius: 20px;
    opacity: 0.85;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.market-hours {
    width: 100px;
    font-size: 0.8rem;
    color: #2c5a74;
    font-family: monospace;
    font-weight: 500;
}
.overlap-info {
    background: #eef2fa;
    padding: 14px 18px;
    border-radius: 24px;
    margin: 20px 0 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.time-note {
    font-size: 0.75rem;
    color: #6c7e8f;
    text-align: center;
    margin-top: 12px;
    font-style: italic;
}
/* Monitor de ações */
.stocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.stock-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 14px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.1s;
}
.stock-symbol {
    font-weight: bold;
    font-size: 1.1rem;
}
.stock-price {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 8px 0;
}
.stock-change {
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 30px;
    display: inline-block;
}
.positive { color: #1e7e5e; background: #e0f2e9; }
.negative { color: #b13e3e; background: #ffe6e5; }
.update-info {
    font-size: 0.7rem;
    text-align: center;
    margin-top: 16px;
    color: #6c7e8f;
}
/* Diário de trades */
.diary-form, .trade-list {
    margin-bottom: 24px;
}
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}
.form-group {
    flex: 1;
    min-width: 150px;
}
.form-group.full-width {
    flex: 1 1 100%;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: #2c5a74;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    font-family: inherit;
}
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}
.trade-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.btn-edit, .btn-delete {
    background: transparent;
    padding: 6px 12px;
    border-radius: 30px;
    margin-left: 8px;
    border: 1px solid;
}
.btn-edit { color: #2c7a4d; border-color: #2c7a4d; }
.btn-delete { color: #b13e3e; border-color: #b13e3e; }
.btn-fullreset {
    background: #1f5e7a;
    color: white;
    padding: 12px 28px;
    font-weight: bold;
    border-radius: 40px;
    border: none;
    cursor: pointer;
}
footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.75rem;
    color: #7c8b97;
}
button { transition: 0.2s; cursor: pointer; }
button:hover { transform: scale(0.97); }
.empty-message { text-align: center; color: #7c8b97; padding: 30px; }

/* ... (todo o CSS anterior permanece igual) ... */

/* NOVOS ESTILOS PARA CALENDÁRIO E GRÁFICO */
.calendar-section, .performance-section {
    margin-bottom: 24px;
}
.calendar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.calendar-event {
    background: #f8fafc;
    border-left: 4px solid #1a5f7a;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
}
.calendar-event strong {
    color: #0f3b4f;
}
.calendar-event .date {
    font-family: monospace;
    font-weight: 600;
    margin-right: 16px;
}
.backup-card {
    background: white;
    padding: 6px 16px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e2e8f0;
}
#performanceChart {
    background: #ffffff;
    border-radius: 20px;
    padding: 8px;
}
