﻿/* 🔹 Reset global */
* {
    box-sizing: border-box;
}

:root {
    --header-height: 90px;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
}

/* 🔹 Cabeçalho fixo */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #343a40;
    color: white;
    padding: 10px 15px;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    overflow: visible;
}

/* 🔹 Logo à esquerda */
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    max-height: 50px;
}

.site-name {
    font-size: 1.5rem;
    font-weight: bold;
    align-items: center;
    color: white;
}

.toggle-btn {
    display: none;
}

/* 🔹 Área do usuário à direita */
.user-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.greeting {
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-link {
    font-size: 0.95rem;
    color: #ffc107;
    text-decoration: none;
    margin-top: 4px;
    transition: color 0.3s;
}

    .auth-link:hover {
        color: #fff;
        text-decoration: underline;
    }

/* 🔹 Botão ☰ */
.toggle-btn {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: white;
    z-index: 1100;
    background: none;
    border: none;
    margin-top: 8px;
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
}


/* 🔹 Sidebar (visível no desktop, oculto no mobile) */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 250px;
    bottom: 0;
    background-color: #343a40;
    overflow-y: auto;
    z-index: 1050;
    padding-top: 20px;
    transition: left 0.3s ease-in-out;
}

/* 🔹 Sidebar oculta no mobile */
@media (max-width: 767px) {
    .sidebar {
        left: -250px;
    }

        .sidebar.active {
            left: 0;
        }
}

/* 🔹 Sidebar colapsada */
.sidebar.collapsed {
    width: 60px;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
}

    .sidebar::-webkit-scrollbar-thumb:hover {
        background-color: #555;
    }

.sidebar a {
    color: white;
    padding: 10px;
    display: block;
    text-decoration: none;
    text-align: left;
    width: 100%;
    transition: background-color 0.3s;
}

    .sidebar a:hover {
        background-color: #495057;
    }

    .sidebar a i {
        margin-right: 8px;
    }

.sidebar.collapsed a {
    font-size: 0;
    padding: 10px 0;
}

    .sidebar.collapsed a i {
        font-size: 20px;
    }

/* 🔹 Conteúdo principal */
.content-wrapper {
    width: 83%;
    max-width: auto;
    margin: 95px 95px;
    padding: 0;
}

main {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}


/* 🔹 Ajuste de margem no desktop */
@media (min-width: 768px) {
    .sidebar + .content-wrapper {
        margin-left: 255px;
    }

    .sidebar.collapsed + .content-wrapper {
        margin-left: 80px;
    }
}

/* 🔹 Banner */
.banner-container {
    position: relative;
    width: 100%;
    height: 400px;
    background-image: url('/Images/fundopreto.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

    .banner-container::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
    }

    .banner-container img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        position: relative;
        z-index: 1;
        margin: 0 auto;
        display: block;
        border-radius: 8px;
    }

/* 🔹 Lista de aniversariantes */
.birthday-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.birthday-item {
    background: #f1f1f1;
    color: #333;
    font-size: 18px;
    padding: 8px 16px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    animation: fadeInCard 0.5s ease-in-out;
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.emoji {
    font-size: 24px;
}

.name {
    font-weight: bold;
}

.date {
    font-style: italic;
    opacity: 0.8;
}

/* 🔹 Container fluido */
.container-fluid {
    width: 100%;
    padding: 0;
    margin: 0;
}

/* 🔹 Acessibilidade */
.btn:focus-visible,
.btn:active:focus-visible,
.btn-link.nav-link:focus-visible,
.form-control:focus-visible,
.form-check-input:focus-visible {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* 🔹 Títulos e separadores */
.main-title {
    margin: 60px 0 30px;
    font-size: 1.8rem;
    font-weight: 600;
    color: #343a40;
    position: relative;
    text-align: center;
    animation: fadeInTitle 0.6s ease-in-out;
}

@keyframes fadeInTitle {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #ccc, transparent);
    margin: 40px 0;
    opacity: 0.6;
}

/* 🔹 Calendário */
#calendar {
    max-width: 100%;
    height: 500px;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 10px;
    margin-bottom: 20px;
}

/* 🔹 Overlay escurecido */
.menu-overlay {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

    .menu-overlay.active {
        display: block;
    }

/* 🔹 Responsividade extra */
@media (max-width: 767px) {
   

    .content-wrapper,
    .content-wrapper.adjusted {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }

    main {
        padding-top: var(--header-height);
        padding-left: 1rem;
        padding-right: 1rem;
        width: 100%;
        max-width: 100%;
    }

    .birthday-list {
        flex-direction: column;
        align-items: stretch;
    }

    .logo-area {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        margin-top: 12px;
    }

    .toggle-btn {
        display: block;
        font-size: 1.8rem;
        color: white;
        background: none;
        border: none;
        cursor: pointer;
    }

    .logo {
        max-height: 40px;
        margin-left: 28px; /* 🔹 Ajuste fino para afastar da esquerda */
    }

    .site-name {
        font-size: 1.2rem;
        font-weight: bold;
        color: white;
    }



}
