html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: Poppins;
    background-color: #0E2A4A;
}

.app {
    margin: 20px auto;
    width: 900px;
    max-width: calc( 100% - 30px );
    border-radius: 10px;
    background-color: azure;
    padding: 20px;
}

.app_login {
    display: flex;
    margin: 20px auto;
    width: 900px;
    max-width: calc( 100% - 30px );
    border-radius: 10px;
    background-color: azure;
    padding: 20px;
    gap: 20px;
}

.titulo {
    text-align: center;
    font-family: Poppins;
    font-size: 50px;
    letter-spacing: 3px;
    font-weight: 700;
    padding: 10px 0 0px 0;
    color: #0E2A4A;
    text-transform: uppercase;
    text-shadow: -0.5px -0.5px 0px #80B3FF, /* Sombra clara para o efeito 3D */
    -1px -1px 0px #99CCFF, -1.5px -1.5px 0px #B3E0FF, -2px -2px 0px #CCE9FF, -2.5px -2.5px 10px rgba(255, 255, 255, 0.4); /* Sombra suave para profundidade */
    position: relative;
    animation: glow 1s infinite alternate;
}

.sub-titulo {
    margin: -35px 0;
    text-align: center;
    font-family: Poppins;
    font-size: 30px;
    letter-spacing: 3px;
    font-weight: 700;
    padding: 0px 0px 30px 0;
    color: #0E2A4A;
    text-shadow: -0.5px -0.5px 0px #80B3FF, /* Sombra clara para o efeito 3D */
    -1px -1px 0px #99CCFF, -1.5px -1.5px 0px #B3E0FF, -2px -2px 0px #CCE9FF, -2.5px -2.5px 10px rgba(255, 255, 255, 0.4); /* Sombra suave para profundidade */
    position: relative;
}

.phtmx {
    color: white;
    font-family: 'Segoe Script';
    text-shadow:none;
}

@keyframes glow {
    0% {
        text-shadow: -0.5px -0.5px 0px #80B3FF, -1px -1px 0px #99CCFF, -1.5px -1.5px 0px #B3E0FF, -2px -2px 0px #CCE9FF, -2.5px -2.5px 10px rgba(255, 255, 255, 0.4), 0 0 10px #E6E9F0, 0 0 15px #80B3FF, 0 0 20px #80B3FF, 0 0 25px #0E2A4A;
    }

    100% {
        text-shadow: -0.5px -0.5px 0px #80B3FF, -1px -1px 0px #99CCFF, -1.5px -1.5px 0px #B3E0FF, -2px -2px 0px #CCE9FF, -2.5px -2.5px 10px rgba(255, 255, 255, 0.4), 0 0 20px #E6E9F0, 0 0 25px #80B3FF, 0 0 30px #80B3FF, 0 0 35px #0E2A4A;
    }
}

.top-bar {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}

.task-counter {
    background: #0E2A4A;
    color: #fff;
    text-align: center;
    border-radius: 10px;
    width: 30%;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.task-counter:hover {
    background: rgb(30, 87, 156);
}

.task-counter h2 {
    margin: 0 0 5px 0;
}

.row {
    display: flex;
    gap: 5px;
}

#todoform {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin: 0;
    padding: 0;
    gap: 5px;
    align-content: center;
    justify-content: center;
}

.todo-form {
    display: flex;
    flex-direction: column;
    flex: 1;
}

a.category:hover {
    background-color: #d6d6ce;
}

.category-select {
    padding: 5px;
    font-family: Poppins;
}

.todo-name {
    padding: 5px;
}

.tarefas {
    text-decoration: none;
    color: azure
}

button {
    cursor: pointer;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: rgb(35, 207, 49);
    padding: 7px 15px;
    font-family: Poppins;
    font-weight: 600;
    text-transform: uppercase;
}

button:hover {
    background: rgb(34, 230, 51);
}

.btn-add:hover {
    background: rgb(30, 87, 156);
}

.btn-add {
    border-radius: 10px;
    background: #0E2A4A;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 600;
    color: white;
}

.btn-apagar:hover {
    background-color: rgb(250, 70, 70);
}

.btn-apagar {
    background-color: rgb(230, 34, 34);
    margin-left: 5px;
}


main {
    display: flex;
    gap: 5px;
}

.sidebar {
    width: 30%;
}

.category {
    padding: 5px 9px;
    border-radius: 10px;
    background: #ededed;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #000;
    text-decoration: none;
}

.category .count {
    color: #fff;
    background: rgb(235, 147, 7);
    padding: 0px 10px;
    display: inline-block;
    border-radius: 50%;
    height: auto;
    text-align: center;
}

.todo-list {
    overflow: auto;
    flex: 1;
}

.todo {
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: row;
    background: #e6edf5;
    margin-bottom: 5px;
}

.todo:nth-child(odd) {
    background: #d9e6f4;
}

.todo-name {
    flex: 1;
    font-family: Poppins;
}

.todo button {
    width: contain;
}

.todo.done {
    opacity: 0.3;
}

button.undone {
    background:rgb(222, 124, 12);
}

.warning, .success {
    background: red;
    color: white;
    padding: 8px;
    font-size: 0.8em;
    margin-bottom: 5px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    transform: translateY(-100%);
    animation-name: message;
    animation-duration: 5s;
    text-align: center;
}

.logout {
    background: rgb(166, 25, 25);
    font-size: 18px;
    letter-spacing: 1px;
}

.logout:hover {
    background: rgb(128, 19, 19);
}

button i {
    margin-right: 3px; /* Espa�o entre o �cone e o texto */
}

.success {
    background: rgb(36, 152, 0);
}

@keyframes message {
    0% {transform: translateY(-100%)}
    10% {transform: translateY(0%)}
    90% {transform: translateY(0%)}
    100% {transform: translateY(-100%)}
}

#calendar {
    width: 100%;
    font-size: 6px;
    background-color: #FFF;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.container {
    width: 400px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 1em;
    color: #0E2A4A;
    text-align: left;
    margin-bottom: 5px;
}

input {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

input[type="submit"] {
    background-color: #0E2A4A;
    color: white;
    border: none;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #1A3E6C;
}

.error {
    color: red;
    margin-top: 10px;
}

.calculadora {
    margin-top: 10px;
    border: solid 1px #000;
    padding: 30px;
    background-color: #2E2E2E;
    border-radius: 10px;
    box-shadow: 2px 2px 2px #000;
  }

.btn-calc {
    background-color:#767676;
    width: 40px;
    height: 40px;
    margin: 4px;
    box-shadow: 2px 2px 2px #000;
  }

.clear {
    width: 93px;
  }

.enter {
    height: 87px;
    margin-bottom: 47px;
  }

.zero {
    width: 93px;
  }

.resultado {
    background-color: azure;
    color: #2E2E2E;
    width: 190px;
    text-align: right;
    font-size: 30px;
    margin-top: 15px;
    margin-bottom: 30px;
    border: solid 1.5px #000;
    box-shadow: 2px 2px 2px #000;
  }

.buttons-links {
    display: block;
    justify-content: center;
    gap: 20px;
}

.links-toptech {
    text-decoration: none;
    color: #E8F5FD;
}

.v-spacing {
    margin-top: 10px;
    width: -webkit-fill-available;
}

/* Para ecras menores (como smartphones) */
@media only screen and (max-width: 768px) {

    .app_login {
        flex-direction: column;
        align-items: center;
    }

    .container {
        width: 95%;
    }

    div.calculadora {
        display: none;
    }

    #calendar {
        font-size: 4px;
        background-color: #FFF;
        border-radius: 2px;
        padding: 3px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    }

    .category-select {
        padding: 1px;
        font-family: Poppins;
    }

    .todo-name {
        width: 150px;
    }

    .btn-add {
        display: block;
        font-size: 12px;
    }
}