:root {
    --deep-blue: #1b325f;
    --soft-blue: #9cc4e4;
    --ice-white: #e9f2f9;
    --action-blue: #3a89c9;
    --accent-coral: #f26c4f;
    --white: #ffffff;
    --text-dark: #2c3e50;
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--ice-white);
    color: var(--text-dark);
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(156, 196, 228, 0.4);
    margin-bottom: 30px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    width: 42px; 
    height: 42px; 
    background: var(--deep-blue);
    color: white; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-family: 'Lexend'; 
    font-weight: 700; 
    font-size: 1.4rem; 
    border-radius: 10px;
}

.title { font-family: 'Lexend'; font-weight: 700; font-size: 1.7rem; color: var(--deep-blue); margin: 0; letter-spacing: -1px; }
.title span { color: var(--accent-coral); }

.tagline { 
    color: var(--action-blue); 
    font-size: 0.65rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.btn-create {

    background: var(--deep-blue); 
    color: white; 
    border: none;
    padding: 10px 22px; 
    border-radius: 8px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: 0.3s;
}

.btn-create:hover { 
    
    background: var(--action-blue); 
    transform: translateY(-2px); 
}

/* CRONOGRAMA */
.weekly-schedule { 

    background: var(--white); 
    border-radius: 20px; 
    padding: 15px; 
    margin-bottom: 30px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.02); 
}

.days-grid { 

    display: grid; 
    grid-template-columns: repeat(7, 1fr); 
    gap: 10px; 
}

.day-col { 

    background: var(--ice-white); 
    border-radius: 12px; 
    min-height: 90px; 
    padding: 8px; 
    text-align: center; 
    border: 1px solid rgba(156, 196, 228, 0.1); 
}

.day-col span { 

    font-size: 0.65rem; 
    font-weight: 800; 
    color: var(--deep-blue); 
    text-transform: uppercase; 
}

.cron-note-link { 

    font-size: 0.6rem; 
    background: white; 
    color: var(--deep-blue); 
    padding: 3px 6px; 
    border-radius: 4px; 
    margin-top: 5px; 
    cursor: pointer; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    border-left: 3px solid var(--action-blue); 
    display: block; text-align: left; 
}

/* KANBAN */
.kanban-board { 

    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px; flex-grow: 1;
}

.kanban-column { 

    background: rgba(255, 255, 255, 0.3); 
    border-radius: 24px; padding: 20px; 
    border: 1px solid rgba(156, 196, 228, 0.3); 
}
.column-header { 

    font-family: 'Lexend'; 
    font-size: 0.85rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
    color: var(--deep-blue); 
    text-transform: uppercase; 
}

.note { 

    background: white; 
    padding: 20px; 
    border-radius: 16px; 
    margin-bottom: 15px; 
    transition: 0.3s; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.02); 
}

.note:hover {

    transform: translateY(-3px); 
    box-shadow: 0 10px 20px rgba(27, 50, 95, 0.08); 
}

/* TOOLBAR */
.toolbar { 

    display: flex; 
    gap: 10px; 
    margin-bottom: 25px; 
}

.toolbar input { 

    flex: 1; 
    padding: 12px; 
    border-radius: 10px; 
    border: 1px solid var(--soft-blue); 
    outline: none; 
}

.toolbar select { 
    
    padding: 12px; 
    border-radius: 10px; 
    border: 1px solid var(--soft-blue); 
}

/* RODAPÉ COMPACTO (SÉTIMO CÉU) */
.compact-footer {
    margin-top: 50px;
    padding: 25px 0;
    border-top: 1px solid rgba(156, 196, 228, 0.4);
    background: transparent;
    width: 100%;
}
.footer-line {
    display: flex;
    justify-content: center; 
    align-items: center;
    text-align: center;
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-dark);
    opacity: 0.6;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* MODAL - DESIGN SAAS PREMIUM */
.modal { 
    display: none; 
    position: fixed; 
    inset: 0; 
    background: rgba(27, 50, 95, 0.4); 
    backdrop-filter: blur(8px); /* Blur mais intenso para foco */
    z-index: 2000; 
    align-items: center; 
    justify-content: center; 
    padding: 20px; 
}

.modal-content { 
    background: white; 
    padding: 35px; 
    border-radius: 24px; 
    width: 100%; 
    max-width: 480px; 
    box-shadow: 0 25px 50px -12px rgba(27, 50, 95, 0.25); 
    border: 1px solid rgba(156, 196, 228, 0.3);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 25px; 
}

#modalTitle {
    font-family: 'Lexend', sans-serif;
    color: var(--deep-blue);
    font-size: 1.4rem;
    margin: 0;
}

/* BOTÃO FECHAR */
.close-btn { 
    cursor: pointer; 
    font-size: 1.8rem; 
    color: var(--soft-blue); 
    line-height: 1;
    transition: 0.2s;
    user-select: none; 
}

.close-btn:hover { 
    color: var(--accent-coral); 
    transform: rotate(90deg); /* Efeito visual moderno ao fechar */
}

.form-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
}

/* CAMPOS DE INPUT OTIMIZADOS */
#noteForm input, 
#noteForm textarea, 
#noteForm select { 
    width: 100%; 
    margin-bottom: 15px; 
    padding: 14px; 
    border-radius: 12px; 
    border: 1px solid rgba(156, 196, 228, 0.6); 
    background: var(--ice-white); 
    font-family: 'Inter', sans-serif; 
    font-size: 0.95rem;
    outline: none;
    transition: 0.2s;
}

#noteForm input:focus, 
#noteForm textarea:focus, 
#noteForm select:focus {
    border-color: var(--action-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(58, 137, 201, 0.1);
}

.btn-submit { 
    width: 100%; 
    background: var(--deep-blue); 
    color: white; 
    border: none; 
    padding: 16px; 
    border-radius: 12px; 
    font-weight: 700; 
    font-size: 1rem;
    cursor: pointer; 
    transition: 0.3s; 
    margin-top: 10px;
}

.btn-submit:hover { 
    background: var(--action-blue); 
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(58, 137, 201, 0.2);
}

/* MOBILE */
@media (max-width: 768px) {
    .days-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 600px) {
    .days-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-line { flex-direction: column; text-align: center; }
    .form-row { grid-template-columns: 1fr; } 
}

/* MOBILE */
@media (max-width: 768px) {
    .days-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
    .days-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-line { flex-direction: column; text-align: center; }
    .v-line { display: none; }
}