/* SPCLEP Frontend Styles */
.spclep-container { max-width: 1100px; margin: 0 auto; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

/* Layout: sidebar left + content right */
.spclep-tabs { display: flex; gap: 1.5rem; align-items: flex-start; }

/* Sidebar nav - vertical */
.spclep-tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 220px;
    max-width: 220px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    flex-shrink: 0;
}

.spclep-tab-btn {
    padding: 0.75rem 1.2rem;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    color: #2d3748;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    width: 100%;
}

.spclep-tab-btn:last-child { border-bottom: none; }
.spclep-tab-btn:hover { background: #edf2f7; color: #1a3a5c; }
.spclep-tab-btn.active { background: #2b6cb0; color: #fff; font-weight: 600; }

/* Content area */
.spclep-tab-content {
    display: none;
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    flex: 1;
    min-width: 0;
}
.spclep-tab-content.active { display: block; }

/* Alerts */
.spclep-alert { padding: 1rem 1.5rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem; }
.spclep-alert strong { display: block; margin-bottom: 0.3rem; font-size: 0.95rem; }
.spclep-alert ul { margin: 0.5rem 0 0 1.2rem; }
.spclep-alert-info { background: #ebf8ff; border-left: 4px solid #63b3ed; color: #2a4365; }
.spclep-alert-warning { background: #fff5f5; border-left: 4px solid #fc8181; color: #c53030; }

/* Buttons */
.spclep-container a.spclep-btn,
.spclep-container a.spclep-btn:link,
.spclep-container a.spclep-btn:visited,
.spclep-container a.spclep-btn:hover,
.spclep-container a.spclep-btn:active,
.spclep-container a.spclep-btn:focus { display: inline-block; padding: 0.5rem 1rem; background: #2b6cb0; color: #fff !important; border-radius: 6px; text-decoration: none !important; font-size: 0.85rem; font-weight: 500; transition: background 0.2s; border-bottom: none !important; box-shadow: none !important; }
.spclep-container a.spclep-btn:hover { background: #1a4a7a; }

.spclep-container a.spclep-btn-sm,
.spclep-container a.spclep-btn-sm:link,
.spclep-container a.spclep-btn-sm:visited,
.spclep-container a.spclep-btn-sm:hover,
.spclep-container a.spclep-btn-sm:active,
.spclep-container a.spclep-btn-sm:focus { display: inline-block; padding: 0.25rem 0.6rem; background: #2b6cb0; color: #fff !important; border-radius: 4px; text-decoration: none !important; font-size: 0.75rem; font-weight: 500; border-bottom: none !important; box-shadow: none !important; }
.spclep-container a.spclep-btn-sm:hover { background: #1a4a7a; }

/* Year selector */
.spclep-year-selector { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.spclep-year-btn { padding: 0.4rem 1rem; border: 1px solid #2b6cb0; border-radius: 6px; background: transparent; color: #2b6cb0; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.spclep-year-btn.active, .spclep-year-btn:hover { background: #2b6cb0; color: #fff; }
.spclep-pub-year { display: none; }
.spclep-pub-year.active { display: block; }

/* Publication table */
.spclep-table-wrapper { overflow-x: auto; }
.spclep-pub-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.spclep-pub-table th { background: #1a3a5c; color: #fff; padding: 0.5rem 0.4rem; text-align: center; font-weight: 600; font-size: 0.75rem; white-space: nowrap; }
.spclep-pub-table td { padding: 0.4rem; border-bottom: 1px solid #e2e8f0; text-align: center; vertical-align: middle; }
.spclep-pub-table tr:nth-child(even) td { background: #f8fafc; }
.spclep-pub-table tr:hover td { background: #edf2f7; }

/* Document list */
.spclep-doc-section { margin-bottom: 1.5rem; }
.spclep-doc-section h4 { font-size: 1rem; color: #1a3a5c; margin-bottom: 0.8rem; padding-bottom: 0.4rem; border-bottom: 2px solid #e2e8f0; }
.spclep-doc-list { list-style: none; padding: 0; margin: 0; }
.spclep-doc-list li { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 0.8rem; border-bottom: 1px solid #e2e8f0; gap: 1rem; }
.spclep-doc-list li:last-child { border-bottom: none; }
.spclep-doc-list li:hover { background: #f7fafc; border-radius: 4px; }
.spclep-doc-title { font-size: 0.9rem; color: #2d3748; flex: 1; }

.spclep-no-results { color: #718096; font-style: italic; padding: 1rem 0; }

/* Program images */
.spclep-program-img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); margin-top: 1rem; }

/* Organigrama */
.spclep-organigrama-img { max-width: 500px; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); margin-top: 1rem; }

/* Regulament */
.spclep-regulament-ref { color: #718096; margin-bottom: 1.5rem; }
.spclep-regulament-content { font-size: 0.9rem; line-height: 1.7; }
.spclep-regulament-content h4 { color: #1a3a5c; margin: 1.5rem 0 0.8rem; padding-bottom: 0.4rem; border-bottom: 2px solid #e2e8f0; font-size: 1rem; }
.spclep-regulament-content p { margin-bottom: 0.8rem; }
.spclep-regulament-content strong { color: #2d3748; }

/* Furnizari */
.spclep-furnizari { padding: 1rem 0; }
.spclep-furnizari p { margin-bottom: 1rem; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 768px) {
    .spclep-tabs { flex-direction: column; }
    .spclep-tabs-nav { flex-direction: row; flex-wrap: wrap; min-width: 100%; max-width: 100%; border-radius: 10px; }
    .spclep-tab-btn { border-bottom: none; border-right: 1px solid #e2e8f0; flex: 1 1 auto; text-align: center; font-size: 0.78rem; padding: 0.6rem 0.8rem; }
    .spclep-tab-btn:last-child { border-right: none; }
    .spclep-pub-table { font-size: 0.7rem; }
    .spclep-doc-list li { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
