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

:root {

    --dark: #222831;
    --gray: #393E46;
    --blue: #9DB2BF;
    --light: #EAEAEA;

}

.color-unit {
    width: 30px;
    height: 30px;
    border: 1px solid #fff;
}

.color-flex {
    width: 90%;
    margin: 1rem auto;

    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.confirm-delete {
    z-index: 999;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--light);
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.btn-box {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
}

body {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 800;
    background-color: rgb(206, 206, 206);
}

a {
    text-decoration: none;
    color: var(--light)
}

input {
    padding: 8px;
    border: none;
    border-radius: 8px;
    margin: 5px 10px;
}

span {
    color: var(--light)
}

.container {
    padding: 2rem;
    margin: 2rem auto;
    width: 95%;
}

.done {
    text-decoration: line-through;
}

button {
    border: none;
    padding: 4px 6px;
    font-size: 1rem;
    background-color: var(--light);
}

button:hover {
    background-color: var(--gray);
    color: var(--light)
}

a:hover {
    color: var(--gray)
}

.boxshadow {
    box-shadow: 4px 4px 20px var(--blue);
    transition: all 1s;
}

.boxshadow:hover {
    box-shadow: 4px 4px 40px var(--light);
}

/* classes */

.bar {

    height: 10px;
    background-color: var(--blue);
    display: flex;
    align-items: center;
    padding: 2rem;
    border-radius: 8px;
    margin: 1rem auto;
    width: 500px;
}

.bar-unit {
    background-color: var(--light);
    width: 3rem;
    height: 1.8rem;
    transition: all 1.4s;
}

.light {
    background-color: #A1D6CB;
}



.header {
    padding: 10px;
    width: 100%;
    background-color: var(--blue);
    color: var(--dark)
}

.header-flex {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;

}

.nav-flex {
    display: flex;
    gap: 20px;
}

.active {
    text-decoration: underline;
    font-size: 1.3rem;
    color: var()
}

.btn {
    border: none;
    padding: 4px 6px;
    font-size: 1rem;
    background-color: var(--gray);
    color: var(--light);
    text-align: center;
    font-weight: 500;
    font-family: 'Courier New', Courier, monospace;
}

.btn:hover {
    background-color: var(--light);
    color: var(--gray);
}

/* general components*/

.todo-index {
    padding: 2rem 1.5rem;
    width: 90%;
    margin: 0px auto;

}

.todo-filter {
    background-color: var(--blue);
    padding: 1rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.todo-list {
    padding: 1rem 1rem;
    background-color: var(--blue);
    border-radius: 8px;
    margin-top: 1rem
}

.container-preview {
    position: relative;
}

.remove {
    position: absolute;
    right: 1%;
    top: 2%;
}

.todo-list-flex {
    list-style: none;
    padding: 1rem;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-radius: 8px;
}

.todo-list-flex li {
    font-size: 1rem;
    padding: 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    background-color: var(--light);
    color: var(--dark);
    box-shadow: 4px 4px 30px var(--gray);
    transition: all 0.7s;
}

.todo-list-flex li:hover {
    box-shadow: 4px 4px 30px var(--light);
    opacity: 0.9;
}



/* testing for tabel */
/* Styling for the DataTable component */
.the-table {
    background-color: var(--blue);
    padding: 1rem 1rem;
    margin-top: 1rem;
    border-radius: 8px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;

}

.data-table th,
.data-table td {
    padding: 10px;
    text-align: left;
}

li:hover {
    color: var(--blue);


}

.data-table th {
    font-weight: bold;
}

.data-table td {
    border-top: 1px solid #ddd;
}

.data-table tr:hover {
    background-color: var(--light);
    color: var(--dark)
}

/* Styling for the toggle-expand column */
.toggle-expand {
    text-align: center;
    cursor: pointer;
}

/* Styling for the expanded row */
.todo-info {
    padding: 10px;
    background-color: var(--light);
    border-top: 1px solid #ddd;
}

.todo-info h5 {
    margin: 0 0 10px;
}

.todo-info img {
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}

.todo-info p {
    margin: 10px 0;
}

button {
    padding: 5px 10px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    font-size: 14px;
}

/* Add some spacing for the table */
table {
    margin-bottom: 20px;
}

.user-msg {
    background-color: var(--light);
    padding: 1rem 1rem;
    position: fixed;
    bottom: 1em;
    right: 1em;
    color: white;
    font-weight: bold;
    font-size: 1.4rem;
    border-radius: 4px;
    box-shadow: 4px 4px 20px var(--light);
}

.user-msg.success {
    background-color: lightgreen;
}

.user-msg.error {
    background-color: lightcoral;
}


.user-msg button {
    float: right;
    margin: 1em;
}

.todo-edit {
    background-color: var(--blue);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60%;
    margin: 0 auto;



}



.home {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: var(--blue);
    border-radius: 8px;
    color: white;
    width: 90%;
    line-height: 3.2rem;
}

.home ul {
    background-color: var(--light);
    color: var(--gray);
    list-style: none;
    padding: .5rem;
    margin-top: 10px;
    border-radius: 4px;
}

.home li {
    border-bottom: 1px solid var(--blue);
}

.home h4 {
    border: 1px solid var(--gray);
    padding: .5rem;
    color: var(--gray);
    background-color: var(--light);
}


.user-profile {

    width: 90%;
    margin: 3rem auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.color-form {

    padding: 1rem;
    border-radius: 8px;
}

.history {
    border-bottom: 1px solid var(--gray);
    padding: 1rem;
}

.todo-details {
    padding: 2rem;
    width: 90%;
    margin: 1rem auto;
    background-color: var(--blue);
    border-radius: 8px;
    line-height: 1.6;
    font-weight: 700;
}

@media (max-width: 768px) {
    .todo-edit {
        padding: 1rem;
        width: 90%;
        display: flex;
        flex-direction: column;
    }

    .todo-edit label {
        font-size: 0.9rem;
    }

    .todo-edit input {
        font-size: 0.9rem;
        padding: 6px;
    }

    .todo-edit button {
        padding: 8px;
        font-size: 0.9rem;
    }

    .todo-preview {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        width: 90%;
    }
}

/* Responsive Styling for DataTable */
@media (max-width: 768px) {
    .data-table {
        width: 100%;
        font-size: 0.9rem;
    }

    .data-table th,
    .data-table td {
        padding: 8px;
    }

    .data-table td {
        display: block;
        text-align: right;
        border-bottom: 1px solid var(--gray);
    }

    .data-table th {
        display: none;
        /* Hide headers for mobile */
    }

    /* Add pseudo-element for labels */
    .data-table td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        align-items: center;
    }

    .nav-flex {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .todo-list-flex {
        display: grid;
        grid-template-columns: 1fr;
        flex-wrap: wrap;
    }

    .todo-list-flex li {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .bar {
        width: 90%;
    }



    .data-table th,
    .data-table td {
        padding: 8px;
        font-size: 0.9rem;

    }
}

@media (max-width: 470px) {
    .todo-preview {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        width: 90%;
    }

    .btn-section {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
    }

    .btn {
        text-align: center;
    }
}