/* ============================================
   INTRANET HOSPITALAR - DESIGN MINIMALISTA MÉDICO
   Paleta: Azul Profissional, Branco Puro, Cinza Neutro
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



:root {
    --primary-blue: #00AEEF;
    --accent-yellow: #FFD200;
    --alert-red: #EF4136;
    --text-dark: #003366;
    --bg-light: #F4F7F9;
    /* Cores - Paleta Minimalista Médica */
    --black: #000;
    --primary: #A09C76;
    --azul-claro: #9FD8E1;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    /* --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827; */
    --gray-700: #000000;
    --gray-800: #000000;
    --gray-900: #000000;

    /* Cores de Status */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Transições */
    --transition: all 0.2s ease-in-out;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--white);
    color: var(--gray-800);
    line-height: 1.6;
}

/* ============================================
   LAYOUT PRINCIPAL
   ============================================ */

.container-main {
    display: flex;
    height: 100vh;
    overflow: hidden;
}


/* ============================================
   MENU DE NAVEGAÇÃO
============================================ */
#sidebar-hamburguer {
    display: none;
    margin-bottom: 0px;
    background-image: url('../img/banner/barrahamb.png');
    background-size: cover;

}

.nomeProjeto {
    margin: 0;
    padding: 0;
}

.nomeProjeto h1 {
    margin-top: 7px;
    font-size: 17px;
    font-family: 'Permanent Marker', cursive;
    color: var(--white);

    text-shadow:
        -1px -1px 0 #000,
        /* Sombra Superior Esquerda */
        1px -1px 0 #333,
        /* Sombra Superior Direita */
        -1px 1px 0 #000,
        /* Sombra Inferior Esquerda */
        1px 1px 0 #000;
    /* Sombra Inferior Direita */

}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 7%;
    width: 100%;
}

nav .logo {
    display: flex;
    text-align: center;
    align-items: center;
}

nav .logo a {
    text-decoration: none;
    font-size: 35px;
    color: var(--black);
    letter-spacing: 1px;
    font-weight: bolder;

}

nav #navbar-text {
    text-decoration: none;
    font-size: 20px;
    color: var(--black);
    letter-spacing: 1px;
    font-weight: bolder;
    gap: 5px;
    padding: 5px;
}

nav #navbar-text:hover {
    background-color: var(--azul-claro);
    color: var(--primary);
    transition: 0.8s;
}

nav ul {
    display: flex;
    background-image: url('../img/banner/barrahamb2.png');
    background-size: cover;
    /* margin-top: -25px; */
}

nav ul li {
    list-style: none;
}

nav ul li .navbar-text {
    display: block;
    text-decoration: none;
    color: var(--black);
    font-size: 20px;
    padding: 5px;
    letter-spacing: 1px;
    font-weight: bolder;
    transition: 0.8s;
}

nav ul li .navbar-text:hover {
    background-color: var(--azul-claro);
    color: var(--primary);
    transition: 0.8s;
}

nav ul .ghost {
    display: none;
}

nav .btn {
    display: flex;
}

nav .btn a {
    color: var(--white);
    text-decoration: none;
    font-size: 20px;
    padding: 10px 25px;
    background-color: var(--primary);
}

nav .hamburger {
    display: none;
    cursor: pointer;
}

nav .bar {
    display: block;
    width: 30px;
    height: 3px;
    border-radius: 2px;
    margin: 5px auto;
    background-color: #222;
    transition: all 0.3s ease-in-out;
}

@media (max-width:768px) {
    aside.sidebar {
        display: none;
    }

    #sidebar-hamburguer {
        display: block;
    }

    nav .hamburger {
        display: block;
    }

    nav .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    nav .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    nav .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    nav {
        padding: 7px 7%;
    }

    nav ul {
        position: fixed;
        left: -100%;
        top: 75px;
        gap: 0;
        border-radius: 0 0 20px 20px;
        background-color: var(--white);
        text-align: center;
        flex-direction: column;
        width: 100%;
        transition: 0.8s;
    }

    nav ul .ghost {
        display: contents;
    }

    nav .btn {
        display: none;
    }

    nav ul li .navbar-text {
        margin: 5px 0;
        font-size: 20px;
    }

    nav ul.active {
        left: 0;
    }
}



/* ============================================
   SIDEBAR
   ============================================ */


.sidebar {
    width: 256px;
    border-right: 1px solid var(--gray-200);
    height: 100vh;
    overflow-y: auto;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
    background-image: url('../img/banner/barralateral.png');
    background-size: cover;

}

/* Header da Sidebar */
.sidebar-header {
    padding: 10px 8px;
    border-bottom: 1px solid var(--gray-200);
    opacity: 1;
    z-index: 10;
}

.logo-container {
    display: flex;
    gap: 5px;
    margin-bottom: 2px;
}

.logo-icon {

    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
}

/* .logo-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
} */
#logoImage {
    width: 60px;
    height: 60px;
}

.nomeProjeto {
    display: flex;
    align-items: baseline;
    flex-direction: column;
    margin-top: 8px;
    margin-left: 5px;


}



.logo-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
    font-family: 'Poppins', sans-serif;
}


.subTitulo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--gray-500);

}

/* Navegação */
.sidebar-nav {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;

}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: none;
    background-color: transparent;
    color: var(--gray-800);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
    text-align: left;
}

.nav-item:hover {
    background-color: var(--gray-100);
    color: var(--black);
}

.nav-item.active {
    background-color: var(--primary-light);
    color: var(--black);
}

.nav-item i {
    font-size: 18px;
    width: 20px;
}

/* Divisor */
.sidebar-divider {
    height: 1px;
    background-color: var(--gray-100);
    margin: 16px 0;
}

/* Links Rápidos */
.quick-links {
    padding: 16px;
    flex: 1;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: baseline;
    align-items: center;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    color: var(--black);
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    transition: var(--transition);
    flex: 1;
    box-sizing: border-box;
}

.quick-links-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
    padding: 0 8px;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-links-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}



.quick-link:hover {
    background-color: var(--primary-light);
    color: var(--white);
}

.quick-link i {
    font-size: 14px;
    width: 16px;
    color: var(--gray-700);
}

.quick-link:hover i {
    color: var(--primary);
}

/* Footer da Sidebar */
.sidebar-footer {
    display: none;
}



/* ============================================
   CONTEÚDO PRINCIPAL
   ============================================ */

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: var(--white);
}

/* Header */
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-content h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
}

.header-content p {
    font-size: 14px;
    color: var(--gray-500);
}

/* Conteúdo */
.content {
    padding: 32px;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    padding-right: 75px;
}

/* ============================================
   SEÇÃO DE EVENTO EM DESTAQUE
   ============================================ */

.featured-event {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 48px;
    box-shadow: var(--shadow-lg);
}

.event-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 32px;
    color: var(--white);
    align-items: center;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
}

.event-info h2 {
    font-size: 32px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.event-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.event-detail i {
    font-size: 16px;
    width: 20px;
    flex-shrink: 0;
}

.event-image {
    display: flex;

    border-radius: 8px;
    background-color: white;
}

.event-image img {
    width: 100%;
    height: auto;

}

/* ============================================
   SEÇÃO DE NOTÍCIAS
   ============================================ */

.news-section {
    margin-bottom: 48px;
}

.section-header {
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
}

.section-header p {
    font-size: 14px;
    color: var(--gray-500);
}

.section-header2 p {
    font-size: 12px;
    margin-top: 0px;
    margin-bottom: 15px;
}

/* Grid de Notícias */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Card de Notícia */
.news-card {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.news-card-image {
    width: 100%;
    height: 192px;
    background-color: var(--gray-100);
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.news-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.news-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-news {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-event {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-alert {
    background-color: #fee2e2;
    color: #991b1b;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-500);
    white-space: nowrap;
}

.news-date i {
    font-size: 12px;
}

.news-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    font-family: 'Poppins', sans-serif;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    margin-top: auto;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-read-more:hover {
    color: var(--primary-dark);
}

.btn-read-more i {
    font-size: 12px;
    transition: var(--transition);
}

.btn-read-more:hover i {
    transform: translateX(2px);
}


.section-sobre {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-sobre p {
    font-size: 12px;
    color: var(--gray-500);
    margin-left: 5px;
    margin-top: 10px;
}

.sidebar-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 16px;
        border-top: 1px solid var(--gray-200);
        /* background-color: #c3ece4; */
        margin-top: 20px;
    }

    .sidebar-footer p {
        font-size: 11px;
        color: var(--gray-500);
        text-align: center;
        
    }

    .sidebar-footer .footer-links {
        display: none;
 
    }

    .sidebar-footer .footer-links ul li {
        list-style: none;
        color: var(--black);
        font-size: 15px;
        padding: 5px;
        letter-spacing: 1px;
               align-items: center;
        display: flex;
        justify-content: center;
    }
    .sidebar-footer .footer-links ul li a{
            text-decoration: none;

            color: var(--black);
            
    }

/* ============================================
   BOTÕES
   ============================================ */

.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--white);
    color: var(--primary);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary:hover {
    background-color: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 1024px) {
    .event-content {
        grid-template-columns: 1fr;
    }

    .event-image {
        /* display: none; */
    }

    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .container-main {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
        max-height: 200px;
        overflow-x: auto;
        flex-direction: row;
        align-items: flex-start;
    }

    .sidebar-header {
        padding: 16px;
        border-bottom: none;
        border-right: 1px solid var(--gray-200);
        min-width: 200px;

    }

    .sidebar-nav {
        padding: 16px;
        flex-direction: row;
        gap: 8px;
        border-right: 1px solid var(--gray-200);
        min-width: 300px;
    }

    .nav-item {
        flex-direction: column;
        padding: 8px;
        font-size: 12px;
    }

    .quick-links {
        display: none;
    }

    .sidebar-footer {
        /* display: none; */
    }

    .header {
        padding: 20px 16px;
    }

    .header-content h1 {
        font-size: 20px;
    }

    .content {
        padding: 20px 16px;
    }

    .featured-event {
        margin-bottom: 0px;
    }

    .event-content {
        padding: 20px;
    }

    .event-info h2 {
        font-size: 24px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 15px;
        margin-bottom: 10px;

    }

    .section-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0px;
    }

    .section-header h2 {
        font-size: 22px;
        margin-bottom: 0px;
        color: var(--primary-dark);
    }

    .section-header2 p {
        font-size: 12px;
        margin-top: 0px;
        margin-bottom: 5px;
        color: var(--gray-500);
    }

    .sidebar-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 16px;
        border-top: 1px solid var(--gray-200);
        /* background-color: #c3ece4; */
        margin-top: 20px;
    }

    .sidebar-footer p {

        font-size: 11px;
        color: var(--gray-500);
        text-align: center;
        
    }
    .sidebar-footer #linha {
        border-top: 1px solid var(--gray-200);
    }

    .sidebar-footer .footer-links {
        display: contents;
        gap: 16px;
        margin-bottom: 15px;
 
    }

    .sidebar-footer .footer-links ul li {
        list-style: none;
        color: var(--black);
        font-size: 15px;
        padding: 5px;
        letter-spacing: 1px;
        align-items: center;
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
    }
    .sidebar-footer .footer-links ul li a{
            text-decoration: none;

            color: var(--black);
            
    }
}

@media (max-width: 480px) {
    .sidebar {
        max-height: 150px;
    }

    .sidebar-header {
        min-width: 150px;
    }

    .sidebar-nav {
        min-width: 200px;
    }

    .header-content h1 {
        font-size: 18px;
    }

    .event-content {
        padding: 16px;
    }

    .event-info h2 {
        font-size: 20px;
    }

    .event-details {
        gap: 8px;
    }

    .event-detail {
        font-size: 12px;
    }
}

/* ============================================
   SCROLLBAR CUSTOMIZADO
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-50);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}


/* ============================================
   MODAL DE NOTÍCIA
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    position: relative;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-in-out;
    z-index: 1001;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background-color: var(--gray-100);
    border: none;
    border-radius: 50%;
    color: var(--gray-700);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background-color: var(--gray-200);
    color: var(--gray-900);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 32px;
}

.modal-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--gray-100);
    min-height: 400px;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: flex-start;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.modal-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-500);
    white-space: nowrap;
}

.modal-date i {
    font-size: 13px;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-800);
    font-family: 'Poppins', sans-serif;
    line-height: 1.3;
}

.modal-excerpt {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
}

.modal-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.modal-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-detail-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

.modal-detail-value {
    font-size: 14px;
    color: var(--gray-800);
    font-weight: 500;
    line-height: 1.5;
}

.modal-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: none;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsividade do Modal */
@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .modal-image-container {
        min-height: 250px;
    }

    .modal-title {
        font-size: 22px;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .modal-body {
        padding: 16px;
        gap: 16px;
    }

    .modal-image-container {
        min-height: 200px;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-excerpt {
        font-size: 13px;
    }
}