/*
 * dashboard.css
 * Estilos do Dashboard — EQ. [A]
 * Colocar em: assets/css/dashboard.css
 *
 * Este ficheiro centraliza todos os estilos visuais dos cards
 * gerados dinamicamente por dashboard-cards.js, bem como
 * estilos partilhados por futuras páginas do dashboard.
 */

/* ══════════════════════════════════════════════════════════════════════
   Cards de estatísticas (geral-dash-1.json)
   ══════════════════════════════════════════════════════════════════════ */

/* ── Link de subtítulo no card ──────────────────────────────────────── */
.card-stat-link {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-stat-link:hover {
    color: #405189 !important;
    text-decoration: none;
}

#title-card-lateral {
		background:#151515; 
		min-height:50px; 
		flex-shrink:0;
}


/* ── Pointer no card ──────────────────────────────── */
#cards-geral-row1 .card-animate {
	  cursor: pointer;
}

/* Fixa a altura do card-body dos cards de estatística */
#cards-geral-row1 .card-animate .counter-value {
	  cursor: pointer;
    font-size: 1rem;           /* tamanho base mantido */
    transform: scale(2.2);     /* escala visual — ajusta o valor */
    transform-origin: left center;
    display: inline-block;
    color: #E07B00 !important;
    transition: color 0.2s ease;    
}

#cards-geral-row1 .card-animate:hover .counter-value {
    color: #0AB39C !important;
}

#cards-geral-row1 .card-animate {
	  cursor: pointer;
}

#cards-geral-row1 .card-animate:hover .text-uppercase {
    color: #E07B00 !important;
    transition: color 0.2s ease;
}

#cards-geral-row1 .card-animate:hover .card-stat-link {
    color: #000000 !important;
    transition: color 0.2s ease;
}

/* ══════════════════════════════════════════════════════════════════════
   Titulos dos gráficos
   ══════════════════════════════════════════════════════════════════════ */

/* Title */
.ysk-grafs-index .card-title {
    font-weight: 300;	
    color: #806000;
}

/* Subtitle */
.ysk-grafs-index .card-subtitle {
    color: #405189 !important;
}




/* ══════════════════════════════════════════════════════════════════════
   Footer dos gráficos — código identificador
   ══════════════════════════════════════════════════════════════════════ */

/* Contentor do código — agrupa nome + número */
.graf-codigo {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-size: 0.72rem;
    line-height: 1;
}

/* Parte textual — "Gráfico" */
.graf-nome {
    font-weight: 500;
    color: #222222;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.68rem;
}

/* Parte numérica — "Nº1" */
.graf-num {
    font-weight: 400;
    color: #0AB39C;
    letter-spacing: 0.04em;
    font-size: 0.72rem;
}


/* ── Dark Mode ── */
[data-bs-theme="dark"] .graf-nome {
    color: #6c757d;
}

[data-bs-theme="dark"] .graf-num {
    color: #a8b4d8;
}




/* ── Dark Mode ───────────────────────────────────────────────────────── */
[data-bs-theme="dark"] .card-stat-link {
    color: #8a9ab0;
}

[data-bs-theme="dark"] .card-stat-link:hover {
    color: #a8b4d8 !important;
}

[data-bs-theme="dark"] .card-animate:hover .counter-value {
    color: #f6a05a !important;
}

[data-bs-theme="dark"] #cards-geral-row1 .card-animate:hover .text-uppercase {
    color: #f6a05a !important;
}
/* ══════════════════════════════════════════════════════════════════════
   Ano Lectivo — injectado via site-defs.json
   ══════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');
.dash-ano-letivo {
	  font-family: 'Roboto', sans-serif;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.dash-ano-letivo .al-prefixo {
    font-size: 1.5rem;	
    color: #495057;
}

.dash-ano-letivo .al-valor {
    color: #F06548;
    font-weight: 300;
}

/* ── Dark Mode ───────────────────────────────────────────────────────── */
[data-bs-theme="dark"] .dash-ano-letivo .al-prefixo {
    color: #a0aec0;
}

[data-bs-theme="dark"] .dash-ano-letivo .al-valor {
    color: #f6a05a;
}

/* ══════════════════════════════════════════════════════════════════════
   Painel lateral direito "Sobre a Escola" (.layout-rightside-col)
   ══════════════════════════════════════════════════════════════════════ */

/* ── Cabeçalho do painel (já tem id="title-card-lateral") ───────────── */
#title-card-lateral h6 {
    font-size: 0.95rem;
}

#title-card-lateral .btn-close {
    font-size: 0.75rem;
}

/* ── Wrapper da imagem de topo ──────────────────────────────────────── */
.rs-card-img-wrapper {
    position: relative;
    width: 100%;
    line-height: 0;
    margin-top: -1px;
}

.rs-card-img-wrapper img {
    width: 100%;
    display: block;
    object-fit: cover;
    opacity: 0.9;
    filter: sepia(60%);
    /* transition: filter 0.25s ease, transform 0.25s ease; */
}

.rs-card-img-wrapper img:hover {
    /* filter: brightness(1.03) saturate(1.1); */
}

/* ── Overlay de texto sobre a imagem ────────────────────────────────── */
.rs-card-img-overlay {
    position: absolute;
    bottom: 12px;
    right: 14px;
    text-align: right;
    line-height: 1.3;
}

.rs-card-escola-nome {
    font-size: 0.92rem;
    font-weight: 300;
    color: #FFF8E7;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.rs-card-escola-uo {
    font-size: 0.84rem;
    font-weight: 300;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    margin-top: 2px;
}

.rs-card-escola-uo span {
    font-size: 0.72rem;
    color: #FFF8E7;    
}

/* ── Secções genéricas (morada, contactos, oferta, localização, redes) ─ */
.rs-card-section {
    padding: 10px 16px;
    font-size: 0.82rem;
    color: var(--vz-body-color, #495057);
    line-height: 1.6;
}

.rs-card-section-morada {
    padding: 14px 16px 10px;
    font-size: 0.82rem;
    color: var(--vz-body-color, #495057);
    line-height: 1.6;
}

.rs-card-section-morada > div,
.rs-card-section > div:not(.rs-card-section-title):not(.rs-oferta-sub) {
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

.rs-card-section-contactos > div {
    align-items: center;
    line-height: 1.9;
}

/* ── Ícones laterais ────────────────────────────────────────────────── */
.rs-card-icon {
    font-size: 1rem;
    color: #405189;
    flex-shrink: 0;
    margin-top: 1px;
}

.rs-card-section-contactos .rs-card-icon {
    margin-top: 0;
}

/* ── Separador ──────────────────────────────────────────────────────── */
.rs-card-separator {
    display: flex;
    justify-content: center;
    padding: 0 16px;
}

.rs-card-separator hr {
    width: 70%;
    border-color: rgba(64, 81, 137, 0.25);
    margin: 2px 0;
    border-top-width: 1.5px;
}

/* ── Links (email e site) ───────────────────────────────────────────── */
.rs-card-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.rs-card-link:hover {
    color: #405189;
}

.rs-card-link-site {
    color: #405189;
    text-decoration: none;
    transition: color 0.2s;
}

.rs-card-link-site:hover {
    color: #0ab39c;
}

/* ── Títulos de subsecção ───────────────────────────────────────────── */
.rs-card-section-title {
    font-weight: 600;
    color: #405189;
    font-size: 0.84rem;
    margin-bottom: 4px;
}

.rs-card-section-title i {
    font-size: 0.95rem;
}

/* ── Oferta formativa ───────────────────────────────────────────────── */
.rs-card-section-oferta {
    padding: 10px 16px 18px;
    font-size: 0.82rem;
    color: var(--vz-body-color, #495057);
    line-height: 1.75;
}

.rs-card-section-oferta .rs-card-section-title {
    margin-bottom: 4px;
}

.rs-oferta-lista {
    padding-left: 8px;
}

.rs-oferta-item {
    cursor: default;
    transition: color 0.2s, background 0.2s;
    border-radius: 3px;
    padding: 1px 3px;
    margin: -1px -3px;
}

.rs-oferta-item:hover {
    color: #405189;
    background: rgba(64, 81, 137, 0.07);
}

.rs-oferta-sub {
    padding-left: 14px;
    color: #6c757d;
}

/* ── Localização ────────────────────────────────────────────────────── */
.rs-card-section-localizacao {
    padding: 10px 16px 18px;
    font-size: 0.82rem;
    color: var(--vz-body-color, #495057);
}

.rs-card-section-localizacao .rs-card-section-title {
    margin-bottom: 8px;
}

.rs-localizacao-map-wrapper {
    display: flex;
    justify-content: center;
    line-height: 0;
}

.rs-localizacao-map-wrapper img {
    width: 80%;
    display: block;
    cursor: pointer;
}

/* ── Redes sociais ──────────────────────────────────────────────────── */
.rs-card-section-redes {
    padding: 10px 16px 22px;
    font-size: 0.82rem;
    color: var(--vz-body-color, #495057);
}

.rs-card-section-redes .rs-card-section-title {
    margin-bottom: 12px;
}

.rs-social-lista {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.rs-social-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #7a6248;
    border: 1.5px solid #c4a882;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F5E6C8;
    font-size: 1.05rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.rs-social-btn:hover {
    opacity: 0.65;
    color: #F5E6C8;
}

/* ── Dark Mode — painel lateral ─────────────────────────────────────── */
[data-bs-theme="dark"] .rs-card-section,
[data-bs-theme="dark"] .rs-card-section-morada,
[data-bs-theme="dark"] .rs-card-section-oferta,
[data-bs-theme="dark"] .rs-card-section-localizacao,
[data-bs-theme="dark"] .rs-card-section-redes {
    color: #ced4da;
}

[data-bs-theme="dark"] .rs-card-icon {
    color: #a8b4d8;
}

[data-bs-theme="dark"] .rs-card-section-title {
    color: #a8b4d8;
}

[data-bs-theme="dark"] .rs-card-link:hover {
    color: #a8b4d8;
}

[data-bs-theme="dark"] .rs-card-link-site {
    color: #a8b4d8;
}

[data-bs-theme="dark"] .rs-card-link-site:hover {
    color: #4fd1c5;
}

[data-bs-theme="dark"] .rs-card-separator hr {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .rs-oferta-item:hover {
    color: #a8b4d8;
    background: rgba(168, 180, 216, 0.08);
}

[data-bs-theme="dark"] .rs-oferta-sub {
    color: #8a9ab0;
}

[data-bs-theme="dark"] .rs-social-btn {
    background: #3a3022;
    border-color: #7a6248;
    color: #d4b896;
}

[data-bs-theme="dark"] .rs-social-btn:hover {
    opacity: 0.70;
}


@media (max-width: 576px) {
    #row-charts-1 .card-footer {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 3px;
    }
    #row-charts-2 .card-footer {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 3px;
    }    
}