/* Base */
body { margin: 0; font-family: Arial, sans-serif; }

/* HEADER */
header, .cabesalho {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(
        to right,
        rgba(15,21,34,0.2) 0%,    /* 20% opaco */
        rgba(16,185,129,0.2) 50%,  /* 20% opaco */
        rgba(15,21,34,0.2) 100%    /* 20% opaco */
    );
    padding: 8px 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
    gap: 10px;
}

/* Responsividade do cabeçalho - Dispositivos Móveis Modernos */

/* iPhone XR, Samsung S20, etc. (até 428px) */
@media (max-width: 428px) {
    header, .cabesalho {
        padding: 6px 8px !important;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        min-height: auto;
        position: relative;
    }
    
    .logo {
        order: 1;
        flex: 0 0 auto;
        text-align: center;
        width: auto;
        display: flex;
        justify-content: center;
        position: static;
        left: auto;
        top: auto;
        z-index: 10000;
    }
    
    .logo img {
        width: 50px !important;
        height: 50px !important;
    }
    
    /* Menu hambúrguer */
    .hamburger-menu {
        display: flex !important;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 5px;
        z-index: 9999;
        position: static;
        right: auto;
        top: auto;
        flex: 0 0 auto;
        margin: 0;
        order: 3;
    }
    
    .hamburger-menu span {
        width: 100%;
        height: 3px;
        background: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }
    
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Menu de navegação - modal */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 9998;
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 20px 30px;
        font-size: 18px;
        font-weight: 500;
        text-decoration: none;
        color: #333;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 25px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        border: 2px solid rgba(0, 123, 255, 0.1);
        margin: 10px 0;
        min-width: 200px;
        justify-content: center;
    }
    
    .nav-menu a:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
        background: rgba(0, 123, 255, 0.1);
        border-color: rgba(0, 123, 255, 0.3);
    }
    
    /* Esconder menu original em mobile */
    .menu {
        display: none !important;
    }
    
    .botoes {
        display: none !important;
    }
}

/* Dispositivos móveis pequenos (até 375px) */
@media (max-width: 375px) {
    header, .cabesalho {
        padding: 4px 6px !important;
        gap: 6px;
        position: relative;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .logo {
        text-align: center;
        width: auto;
        display: flex;
        justify-content: center;
        position: static;
        left: auto;
        top: auto;
        z-index: 10000;
    }
    
    .logo img {
        width: 45px !important;
        height: 45px !important;
    }
    
    .hamburger-menu {
        width: 28px;
        height: 28px;
        position: static;
        right: auto;
        top: auto;
        margin: 0;
    }
    
    .nav-menu a {
        padding: 15px 25px;
        font-size: 16px;
        min-width: 180px;
    }
}

/* Dispositivos móveis médios (376px - 576px) */
@media (min-width: 376px) and (max-width: 576px) {
    header, .cabesalho {
        padding: 8px 12px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: relative;
    }
    
    .logo {
        order: 1;
        flex: 0 0 auto;
        text-align: center;
        width: auto;
        display: flex;
        justify-content: center;
        position: static;
        left: auto;
        top: auto;
        z-index: 10000;
    }
    
    .logo img {
        width: 65px !important;
        height: 65px !important;
    }
    
    .hamburger-menu {
        display: flex !important;
        flex-direction: column;
        justify-content: space-around;
        width: 32px;
        height: 32px;
        background: transparent;
        border: none;
        cursor: pointer;
        position: static;
        right: auto;
        top: auto;
        flex: 0 0 auto;
        margin: 0;
        order: 3;
    }
    
    .hamburger-menu span {
        width: 100%;
        height: 3px;
        background: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }
    
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Menu de navegação - modal */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 9998;
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 20px 30px;
        font-size: 18px;
        font-weight: 500;
        text-decoration: none;
        color: #333;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 25px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        border: 2px solid rgba(0, 123, 255, 0.1);
        margin: 10px 0;
        min-width: 200px;
        justify-content: center;
    }
    
    .nav-menu a:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
        background: rgba(0, 123, 255, 0.1);
        border-color: rgba(0, 123, 255, 0.3);
    }
    
    /* Esconder menu original em mobile */
    .menu {
        display: none !important;
    }
    
    .botoes {
        display: none !important;
    }
}

/* Tablets (577px - 768px) */
@media (min-width: 577px) and (max-width: 768px) {
    header, .cabesalho {
        padding: 8px 15px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        position: relative;
    }
    
    .logo {
        order: 1;
        flex: 0 0 auto;
        text-align: center;
        width: auto;
        display: flex;
        justify-content: center;
        position: static;
        left: auto;
        top: auto;
        z-index: 10000;
    }
    
    .logo img {
        width: 80px !important;
        height: 80px !important;
    }
    
    .hamburger-menu {
        display: flex !important;
        flex-direction: column;
        justify-content: space-around;
        width: 32px;
        height: 32px;
        background: transparent;
        border: none;
        cursor: pointer;
        position: static;
        right: auto;
        top: auto;
        flex: 0 0 auto;
        margin: 0;
        order: 3;
    }
    
    .hamburger-menu span {
        width: 100%;
        height: 3px;
        background: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }
    
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Menu de navegação - modal */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 9998;
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 20px 30px;
        font-size: 18px;
        font-weight: 500;
        text-decoration: none;
        color: #333;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 25px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        border: 2px solid rgba(0, 123, 255, 0.1);
        margin: 10px 0;
        min-width: 200px;
        justify-content: center;
    }
    
    .nav-menu a:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
        background: rgba(0, 123, 255, 0.1);
        border-color: rgba(0, 123, 255, 0.3);
    }
    
    /* Esconder menu original em mobile */
    .menu {
        display: none !important;
    }
    
    .botoes {
        display: none !important;
    }
}

/* Desktop - Esconder menu hambúrguer */
@media (min-width: 769px) {
    .hamburger-menu {
        display: none !important;
    }
    
    .nav-menu {
        display: none !important;
    }
    
    .menu {
        display: flex !important;
    }
    
    .botoes {
        display: flex !important;
    }
}

/* espaço padrão após o cabeçalho */
main.page-content { min-height: calc(100vh - 160px); display:block; margin-top: 0; }
.calendar-container, .container, .cards, .search-box { margin-top: 0; }

.logo {
    font-size: 30px;
    font-weight: bold;
    color: #000;
}
.logo img {
    width: 110px; /* Adjust this value */
    height: 110px; /* Adjust this value */
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

/* Logo clicável */
.logo a {
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    gap: 20px;
}

/* Menu items com fonte maior */
nav a {
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

nav a:hover {
    transform: translateY(-2px);
}

/* Ícones do menu maiores */
nav a i {
    font-size: 1.2rem;
    margin-right: 5px;
}

nav a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

nav a .icon {
    font-size: 16px;
}

nav a:hover {
    color: #10b981;
}

/* Removidos tooltips que criavam ícones pequenos indesejados */

/* Estilos dos botões do cabeçalho */
.botoes {
    display: flex;
    gap: 15px;
    position: absolute;
    right: 50px;
    top: 15px;
    z-index: 10000;
}

.botoes a {
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: bold;
}

.btn-cadastrar {
    background: #002060;
    color: #fff;
}

.btn-login {
    border: 2px solid #002060;
    color: #002060;
    background: #fff;
}