body {
    background: linear-gradient(135deg, #3a6a8f, #1e234b);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    font-family: 'Clash Display', sans-serif;
}

/*------ PAGE INDEX ------  */


h1, h2, p{
    color: #e6eaf0;
}

a{
    color: #afd9f7;
}

.form {
 --width-of-input: 200px;
 --border-height: 1px;
 --border-before-color: rgba(221, 221, 221, 0.39);
 --border-after-color: #10b98199;
 --input-hovered-color: #4985e01f;
 position: relative;
 width: var(--width-of-input);
}

.input-login {
 color: #fff;
 font-size: 0.9rem;
 background-color: transparent;
 width: 100%;
 box-sizing: border-box;
 padding-inline: 0.5em;
 padding-block: 0.7em;
 border: none;
 border-bottom: var(--border-height) solid var(--border-before-color);
}

.input-border {
 position: absolute;
 background: var(--border-after-color);
 width: 0%;
 height: 2px;
 bottom: 0;
 left: 0;
 transition: 0.3s;
}

.input-login:hover {
 background: var(--input-hovered-color);
}

.input-login:focus {
 outline: none;
}

.input-login:focus ~ .input-border {
 width: 100%;
}

.log-button {
  font-size: 15px;
  padding: 1em 2.7em;
  font-weight: 500;
  background: #1f2937;
  color: white;
  border: none;
  position: relative;
  overflow: hidden;
  border-radius: 0.6em;
  cursor: pointer;
  margin-top: 1em;
  font-family: 'Clash Display', sans-serif;
}

.gradient {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: 0.6em;
  margin-top: -0.25em;
  background-image: linear-gradient(
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.3)
  );
}

.label {
  position: relative;
  top: -1px;
}

.transition {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
  transition-duration: 500ms;
  background-color: rgba(16, 185, 129, 0.6);
  border-radius: 9999px;
  width: 0;
  height: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.log-button:hover .transition {
  width: 14em;
  height: 14em;
}

.log-button:active {
  transform: scale(0.97);
}

.container{
    text-align: center;   
    margin-top: 9em;
}

.login-form{
    margin: auto;
    width: fit-content;
    padding: 50px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/*------ PAGE TODOS ------ */

.column-board {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    justify-content: center;
}


.column {
    flex: 0 0 300px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
}

.column-title {
    margin: 0;
    font-size: 1.2em;
    color: black;
}

.column-actions {
    display: flex;
    gap: 8px;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100px;
}

.todo-item {
    background: white;
    padding: 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.todo-item.completed {
    opacity: 0.6;
}

.todo-item.completed .todo-title {
    text-decoration: line-through;
}

.empty-message {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

.column-form, .todo-form{
    text-align: center;
}

#column-title, #todo-title{
    width: fit-content;
}

.btn-primary{
    background-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary:hover{
    box-shadow: 1px 1px 2px #c5c5c5, -1px -1px 2px #ffffff;
}

.btn-primary:active{
    box-shadow: 6px 6px 12px #c5c5c5, -6px -6px 12px #ffffff;
}

h1{
    text-align: center;
}

.todo-form-container{
    margin: auto;
    width: fit-content;
}

#popup-container {
    position: fixed;
    gap: 10px;
    z-index: 9999;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.column-form .form{
    display: inline-flex;
}

.todo-form .form{
    display: inline-flex;
}

footer{
    text-align: center;
}

.popup {
    padding: 12px 18px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    animation: fadeInOut 3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
}

.popup.success {
    background-color: #28c76f;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-10px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

.logout-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition-duration: .3s;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.199);
  background-color: rgb(255, 65, 65);
  margin: auto;
}

.sign {
  width: 100%;
  transition-duration: .3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sign svg {
  width: 17px;
}

.sign svg path {
  fill: white;
}
.text {
  position: absolute;
  right: 0%;
  width: 0%;
  opacity: 0;
  color: white;
  font-size: 1.2em;
  font-weight: 600;
  transition-duration: .3s;
}
.logout-btn:hover {
  width: 200px;
  border-radius: 40px;
  transition-duration: .3s;
}

.logout-btn:hover .sign {
  width: 30%;
  transition-duration: .3s;
  padding-left: 20px;
}
.logout-btn:hover .text {
  opacity: 1;
  width: 70%;
  transition-duration: .3s;
  padding-right: 10px;
}
.logout-btn:active {
  transform: translate(2px ,2px);
}


/*------ RESPONSIVE ------ */

@media (max-width: 600px){
    .container {
        flex-direction: column; /* devient vertical */
        gap: 10px;
    }

    .column-board{
        display: inline-grid;
    }

    .todo-item {
        padding: 12px;
        font-size: 1rem;
    }

    .form{
        width: 100%;
    }

    select{
        width: 45%;
    }

}

.warning{
    background-color: rgb(152, 80, 80);
    margin-bottom: 1em;
    padding: 0.5em;
}

.mdpvisible {
    cursor: pointer;
    position: absolute;
    align-self: center;
}