/* css/planner-header.css */
/* Override del header del planner — dark theme coherente */

/* === CONTENEDOR PRINCIPAL === */
#planner-container {
    max-width: 1200px;
    width: 96%;
    margin: 0 auto;
    padding: 0 0 30px 0;
    background: transparent;
    color: #f0f2f5;
    border-radius: 0;
    box-shadow: none;
}

/* === TOP BAR === */
.planner-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: rgba(37,45,58,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px 14px 0 0;
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-brand { display: flex; align-items: center; gap: 8px; }
.topbar-logo {
    width: 30px; height: 30px;
    background: linear-gradient(135deg, #C9376F, #e04a80);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px; font-weight: 700; color: #fff;
}
.topbar-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px; font-weight: 700; color: #f0f2f5;
}
.topbar-name span { color: rgba(255,255,255,0.4); font-weight: 500; }

.topbar-center { flex: 1; text-align: center; }
.autosave-badge {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px; font-weight: 600;
    color: rgba(255,255,255,0.35);
}

.topbar-right { display: flex; align-items: center; gap: 6px; }
.topbar-link {
    display: flex; align-items: center; gap: 5px;
    padding: 7px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px; font-weight: 600;
    transition: all 0.2s;
}
.topbar-link:hover { background: rgba(255,255,255,0.08); color: #f0f2f5; }
.topbar-link.admin-only { border-color: rgba(201,55,111,0.2); color: #C9376F; }
.topbar-link.admin-only:hover { background: rgba(201,55,111,0.1); }

.topbar-btn-logout {
    width: 34px; height: 34px;
    background: rgba(231,76,60,0.08);
    border: 1px solid rgba(231,76,60,0.12);
    border-radius: 8px;
    color: rgba(231,76,60,0.6);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    transition: all 0.2s;
}
.topbar-btn-logout:hover { background: rgba(231,76,60,0.15); color: #e74c3c; }

/* === HEADER CONTENT === */
.planner-header {
    background: #252d3a;
    border: 1px solid rgba(255,255,255,0.06);
    border-top: none;
    border-radius: 0 0 14px 14px;
    padding: 24px 28px 20px;
    margin-bottom: 24px;
    position: relative;
}

/* Welcome */
.welcome-row {
    margin-bottom: 22px;
    text-align: center;
}
.welcome-text h1 {
    font-family: 'DM Sans', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #f0f2f5;
    margin: 0 0 4px 0;
    text-align: center;
}
.welcome-text h1 span { color: #C9376F; }
.welcome-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    margin: 0;
}

/* Section labels */
.section-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(255,255,255,0.3);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.section-label i { font-size: 12px; }

/* === PROYECTO ROW === */
.section-proyecto {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.proyecto-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.proyecto-row input[type="text"] {
    flex: 1;
    min-width: 220px;
    padding: 10px 14px;
    background: #1c2636;
    color: #f0f2f5;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: all 0.2s;
}
.proyecto-row input[type="text"]::placeholder { color: rgba(255,255,255,0.25); }
.proyecto-row input[type="text"]:focus {
    border-color: #C9376F;
    box-shadow: 0 0 0 3px rgba(201,55,111,0.12);
}

/* === BOTONES GENERALES === */
.btn-p {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 16px;
    border: none;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-primary-p {
    background: #C9376F;
    color: #fff;
}
.btn-primary-p:hover {
    background: #e04a80;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(201,55,111,0.3);
}
.btn-secondary-p {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.08);
}
.btn-secondary-p:hover {
    background: rgba(255,255,255,0.1);
    color: #f0f2f5;
}
.btn-action-p {
    background: rgba(91,141,239,0.08);
    color: rgba(91,141,239,0.8);
    border: 1px solid rgba(91,141,239,0.12);
}
.btn-action-p:hover {
    background: rgba(91,141,239,0.15);
    color: #5b8def;
    transform: translateY(-1px);
}
.btn-danger-p {
    background: rgba(231,76,60,0.08);
    color: rgba(231,76,60,0.6);
    border: 1px solid rgba(231,76,60,0.12);
}
.btn-danger-p:hover {
    background: rgba(231,76,60,0.15);
    color: #e74c3c;
}

/* Disabled */
.btn-p:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* === ACTIONS GRID === */
.actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.action-group { }
.action-row {
    display: flex;
    gap: 8px;
}

/* === CARGAR PROYECTO === */
.section-cargar {  }
.load-project-section {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.load-project-section select {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    background: #1c2636;
    color: #f0f2f5;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    cursor: pointer;
}
.load-project-section select:focus {
    border-color: #C9376F;
    outline: none;
}

/* === EXPORT AREA === */
#export-area {
    background: #252d3a;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 24px;
}
#export-title {
    text-align: center;
    color: #f0f2f5;
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    margin-bottom: 16px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .planner-topbar { padding: 10px 16px; flex-wrap: wrap; gap: 8px; }
    .planner-header { padding: 18px 16px 16px; }
    .welcome-text h1 { font-size: 22px; }
    .proyecto-row { flex-direction: column; }
    .proyecto-row input[type="text"] { min-width: 100%; }
    .actions-grid { grid-template-columns: 1fr; }
    .action-row { flex-wrap: wrap; }
    .load-project-section { flex-direction: column; }
    .load-project-section select { min-width: 100%; }
    .topbar-link span { display: none; }
}

@media (max-width: 480px) {
    .topbar-brand { display: none; }
    .btn-p { padding: 8px 12px; font-size: 11px; }
}