/* Regras já existentes */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html{
    height: 100%;
}

body{
    font-family: Arial, Helvetica, sans-serif;
}

a{
    text-decoration: none;
    color: black;
}

header{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 20px 30px 0px;
}

header .right{
    list-style: none;
    display: flex;
    gap: 40px;
    font-size: 1.2em;
}

header .right li{
    display: inline-block;
}

.logo a{
    font-size: 2.4em;
    font-family: initial;
    vertical-align: middle;
}

.logo img{
    vertical-align: middle;
    margin-right: 10px;
}

.logo span{
    vertical-align: middle;
}

footer {
    margin: 30px 0;
    border-radius: 20px;
    width: calc(100% - 60px);
    border: 3px solid #f9c747;
    padding: 40px;
    margin-left: 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0 auto;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin: 10px 0;
}

.footer-section ul li a {
    text-decoration: none;
    transition: color 0.3s;
    color: #787878;
    font-size: 0.9em;
}

.footer-section ul li a:hover {
    color: #4273da;
}

.footer-section p {
    font-size: 14px;
    margin-top: 10px;
}

.footer-section .social-icons a {
    font-size: 20px;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-section .social-icons a:hover {
    color: #4273da;
}

.footer-bottom {
    text-align: center;
    margin-top: 35px;
    font-size: 12px;
}

.container{
    margin-left: 30px;
    width: calc(100% - 60px);
    background: white;
    padding: 50px;
    border: 3px solid #f8f8f8;
    border-radius: 20px;
}

.container h1{
    margin-bottom: 20px;
}

.container h2, .container h3, .container h4 {
    margin-bottom: 10px;
}

.container p{
    margin: 10px 0;
}

.container li {
    margin-left: 20px;
}

.mb-10{
    margin-bottom: 10px;
}

.mb-2{
    margin-bottom: 2px;
}

.mb-4{
    margin-bottom: 2px;
}

.login-module button{
    border: 0;
    padding: 10px;
    background: #f9c747;
    font-size: 1.5em;
    border-radius: 40px;
}

@media screen and (max-width: 800px){
    
    header{
        flex-direction: column;
        gap: 10px;
        padding-bottom: 30px;
    }
    
    .footer-bottom {
        font-size: 1em;
    }

}

.calendar{
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.calendar .day{
    width: 20%;
    flex-grow: 1;
    height: 70px;
    border-radius: 20px;
    background: #facf5f;
    font-size: 11px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.day.day-passed{
    opacity: 0.4;
}

h2.calendar-name {
    font-weight: normal;
    /* // margin-bottom: 40px; */
}

.calendar-description{
    white-space: pre-line;
    margin-bottom: 30px;
    color: #757575;
    font-size: 0.9em;
}

.top-nav{
    display: flex;
    padding: 10px 30px;
    margin-bottom: 10px;
    gap: 10px;
}

.top-nav select{
    padding: 10px;
    border-radius: 30px;
    border: 3px solid gold;    
}

.top-nav input[type=number]{
    width: 80px;
    padding: 10px;
    border-radius: 30px;
    border: 3px solid gold;
}
.icons-floating {
    position: relative;
    width: 100%;
    height: 100%;
}

/* CSS para a área de envio fixa no rodapé */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.9);
    padding: 10px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.bottom-bar form {
    width: 90%;
    display: flex;
}

.bottom-bar textarea {
    flex: 1;
    font-size: 1.5rem;  /* fonte grande */
    padding: 5px;
    resize: none;
    height: 100px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.bottom-bar button {
    margin-left: 10px;
    padding: 0 15px;
    font-size: 1.2rem;
    border: none;
    background-color: #007BFF;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

/* Animação de rotação para os ícones durante o envio */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spinning {
    animation: spin 2s linear infinite;
}

.groups{
    margin: 100px 0;
}

.group-list{
    display: flex;
    align-content: center;
    justify-content: center;
    height: 60%;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.group{
    border: 1px solid #e6e6e6;
    padding: 20px 20px;
    box-shadow: 0 0 7px -4px #8b8b8b;
    border-radius: 15px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.group-name{
    background: #c8ffc8;
    padding: 5px 10px;
    border-radius: 9px;
    margin-left: 20px;
    display: inline-block;
    visibility: hidden;
}

.group-block{
    background: white;
    border-top: 1px solid silver;
    padding-top: 30px;
    position: fixed;
    width: 100%;
    height: calc(100vh - 95px);
    top: 100%;
    transition: 1s all;
    overflow: auto;
}

.group-block.active{
    top: 95px;
}

.group-inside{
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.group-inside textarea{
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    resize: none;
}

.img-list img {
    max-width: 200px;
    padding: 10px;
    border: 1px solid silver;
    margin: 10px;
    border-radius: 10px;
}

.step1{
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: auto;
    height: 100%;
    width: 100%;
}

.ref-list {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.reference {
    width: 180px;
    border: 1px solid #dcdcdc;
    padding: 20px;
    border-radius: 10px;
    position: relative;
}

.reference span{
    display: block;
    margin: 0px 0 10px;
}

.reference img {
    width: 80px;
}

.base-image {
    position: relative;
}

.base-image button, .reference button.delete{
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    border: 0;
    border-radius: 20px;
    height: 20px;
    background: #eaeaea;
}

.reference button.delete{
    margin-right: -10px;
    margin-top: -10px;
    padding: unset;
}

.img-list {
    display: flex;
    flex-wrap: wrap;
}

.library-list img {
    width: 300px;
}

.library{
    margin-top: 40px;
    width: 90%;
    background: #FF9800;
    padding: 40px;
    margin-bottom: 40px;
    border-radius: 30px;
}

button{
    background: #f1f1f1;
    border: 0;
    padding: 5px 10px;
    border: 1px solid silver;
    border-radius: 5px;
}