body {
    font-family: 'Arial', sans-serif;
    background-color: #212121;
    color: #e0e0e0;
    margin-left:70px ;
    margin-right: 40px;
    padding: 0;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 70px; /* Largura recolhida */
    height: 100%;
    background-color: #2d2d2d;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.6);
    transition: width 0.3s ease;
    z-index: 1;
}

.sidebar.expanded {
    width: 250px; /* Largura expandida */
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0);
    color: #000;
}

.sidebar-header .logo-text{
    color: #e0e0e0;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
    display: none; /* Escondido quando recolhido */
    position: fixed;
    margin-left: 50px;
}

.sidebar.expanded .logo-text  {
    display: inline; /* Visível quando expandido */
    font-weight: 600;
}

.toggle-btn {
    font-size: 24px;
    color: #e0e0e0;
    cursor: pointer;
    padding: 10px;
    display: block;
    bottom: 0;
    position: fixed;
    align-items: center;
    justify-content: center;
    left: 10px;
}

.divider {
    border: 0;
    height: 1px;
    background: #424242;
    margin: 10px 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    display: flex;
    align-items: center;
    padding: 15px 20px;
}

.sidebar-menu .icon {
    font-size: 30px;
    width: 30px;
    text-align: center;
    margin-right: 25px;
    color: #e0e0e0;
    position: relative;

}

.sidebar-menu .menu-text {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
    display: none; /* Escondido quando recolhido */
}

.sidebar.expanded .menu-text  {
    display: inline; /* Visível quando expandido */

}

.sidebar-menu li a:hover {
    color: #4caf50;
}

/* Conteúdo Principal */
.main-content {
    padding: 20px;
    width: 100%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

h1 {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

p {
    font-size: 16px;
    color: #b0b0b0;
    margin-bottom: 30px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    padding: 10px;
    background-color: #2d2d2d;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.photo-container {
    position: relative;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    height: 220px;
    background-color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.photo-container:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s;
}

.photo-container.selected .photo {
    opacity: 0.8;
}

.checkmark {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background-color: #424242;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #4caf50;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.photo-container.selected .checkmark {
    display: flex;
}

.photo-label {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #e0e0e0;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.footer {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: #2d2d2d;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

#selectedCount {
    font-size: 18px;
    color: #e0e0e0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

button {
    padding: 12px 25px;
    font-size: 16px;
    background-color: #4caf50;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

button:hover {
    background-color: #66bb6a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(33, 33, 33, 0.95);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 95%;
    max-height: 85vh;
    margin: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.modal-content.zoomed {
    transform: scale(1.5);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #e0e0e0;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.close:hover {
    color: #ffffff;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(66, 66, 66, 0.7);
    color: #e0e0e0;
    font-size: 24px;
    padding: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.nav-btn:hover {
    background-color: rgba(76, 175, 80, 0.7);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.choose-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background-color: #4caf50;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Botão Voltar ao Topo */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #424242;
    color: #e0e0e0;
    font-size: 20px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    padding: 0;
    z-index: 100;
    transition: background-color 0.3s;
}

.back-to-top:hover {
    background-color: #4caf50;
}

/* Login Section */
.login-section {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: #2d2d2d;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.login-section form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-section input {
    padding: 10px;
    font-size: 16px;
    background-color: #424242;
    color: #e0e0e0;
    border: none;
    border-radius: 4px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.login-section input::placeholder {
    color: #b0b0b0;
}

.login-section button {
    padding: 12px;
    background-color: #4caf50;
}

.error {
    color: #ff5252;
    font-size: 14px;
    margin-top: 10px;
}
