@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

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

html, body{
    height: 100vh;
    width: 100vw;
}

body{
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;

    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

h1{
    position: fixed;    
    top: 10px;
}

button{
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

button:hover{
    background-color: black;
    color: white;
}

#container{
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    width: 40%;
    padding: 40px;
    background-color: black;
    border-radius: 30px;

    /* 1. Semi-transparent background */
    background: rgba(255, 255, 255, 0.2); 
    
    /* 2. Frosted blur effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari support */
    
    /* 3. Subtle border for edge definition */
    border: 1px solid rgba(255, 255, 255, 0.3);
    
    /* 4. Finishing touches */
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

#container-dias{
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 8px;
    
    background: rgba(255, 255, 255, 0.2); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); 
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);

}

#container-dias > p{
    display: flex;
    background-color: black;
    color: white;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s ease-in-out;
}

#container-dias > p.ativo {
    background-color: green;
}

#container-dias > p:hover{
    background-color: green;
}

#container-treino{
    position: relative;
    /* display: flex; */
    display: none;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    margin-top: 3em;
    width: 100%;
    height: 100%; 

    background: rgba(255, 255, 255, 0.2); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); 
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

#container-treino > button{
    margin: 40px 0;
}

#table-container {
    display: grid;
    margin-top: 20px;
    border-radius: 50px;
    grid-template-columns: 2fr 1fr 1fr 100px;
    gap: 1px;
}

.table-header {
    font-weight: bold;
    padding: 12px;
    text-align: center;
}

/* O segredo para o JS funcionar: */
/* #table-body {
    display: contents; 
} */

.grid-table{
    display: contents;
    border-bottom: 1px solid #000000;
}

.grid-table p{
    margin: 5px; 
    padding: 12px;
     border-bottom: 1px solid #eee;
    align-items: center;
}

.grid-table button{
    border-radius: 50%;
}

div.grid-table > p{
    text-align: center;
}


table button{
    border-radius: 50%;
    font-size: .6em;
}

#add-Modal{
    position: absolute;
    top: 0;
    display: none;
    flex-flow: column nowrap;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 16px;
}

#add-Modal > p{
    align-self: center;
    font-weight: bolder;
    font-size: 2rem;
    color: #bdbdbd;
}

#add-Modal > h2{
    text-align: center;
    text-transform: uppercase;
    margin: 20px;
}

#add-Modal > input{
    width: 50%;
    align-self: center;
    margin: 5px;
    border: none;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.200);
    color: rgb(0, 0, 0);
    padding: 5px;
}

#add-Modal > button{
    width: 20%;
    align-self: center;
    margin: 5px;
}

#insert-Modal{
    position: absolute;
    top: 0;
    display: none;
    flex-flow: column nowrap;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 16px;
}

#insert-Modal > input{
    width: 50%;
    align-self: center;
    margin: 5px;
    border: none;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.200);
    color: rgb(0, 0, 0);
    padding: 5px;
}

#insert-Modal > button{
    width: 20%;
    align-self: center;
    margin: 5px;
}