/* Global/Element Styles */
html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 10px;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    background-color: lightgray;
    color: #0a0a0a;
    transition: all 0.75s ease;
}

i {
    color: inherit !important;
    font-size: 20px;
    cursor: pointer;
}

footer i {
    font-size: 40px;
}

/* Content */

.navbar,
.navbar-brand {
    border-radius: 10px !important;
    color: inherit !important;
    background-color: inherit !important;
}

.nav-link {
    color: inherit;
    text-decoration: none;
    padding: 10px 20px;
    margin: 2px 5px;
    cursor: pointer;
    border: 2px solid #0a0a0a;
    border-radius: 5px;
    transition: all 0.3s ease;

    &:hover {
        border-radius: 15px;
    }
}

.btn,
.btn-primary {
    padding: 5px 10px;
    margin-left: 5px;
    border-radius: 5px;
    background-color: inherit !important;
    color: white;
    border: 2px solid #0a0a0a;
    transition: all 0.3s ease;

    &:hover {
        background-color: #333 !important;
    }
}

.card {
    height: fit-content;
    width: fit-content;
    border-radius: 10px;
    margin: 10px 15px;
    padding: 20px 25px;
    transition: all 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    animation: slideIn 1s forwards ease;
}

.date-badge {
    font-size: 12px;
    border-radius: 5px;
    padding: 2px 5px;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.completed {
    filter: opacity(60);
    text-decoration: line-through;
    background-color: lightgreen;
    color: white;
}


.task-input {
    margin-right: 1rem;
    animation: slideIn 1s forwards ease;
}

.modal-content {
    border: 1px solid #0a0a0a;
    background-color: rgba(255, 255, 255, 0.95);
    color: #0a0a0a;
    transition: all 0.5s ease;
    backdrop-filter: blur(10px);
}

footer {
    margin-top: auto;
    width: 100%;
    height: fit-content;
    background-color: #f8f9fa;
    text-align: center;
    padding: 10px 0;
    transition: all 0.5s ease;
}

/*Dark Mode*/

.dark {
    background-color: #0a0a0a;
    color: lightgray;
}

body.dark .nav-link {
    color: lightgray;
    border: 2px solid lightgray;
}

body.dark .navbar-toggler-icon {
    border-color: whitesmoke;
}

body.dark .task-input {
    background-color: darkgray;
    color: lightgray
}

body.dark .card {
    background-color: rgb(62, 62, 62);
    color: inherit !important;
    box-shadow: 0 0 10px rgba(141, 141, 141, 0.2);
}

body.dark .completed {
    filter: opacity(60);
    text-decoration: line-through;
    background-color: darkgreen;
    color: lightgray;
}

body.dark .modal-content {
    border: 1px solid lightgray;
    background-color: rgba(0, 0, 0, 0.5) !important;
    color: lightgray !important;
    transition: all 0.5s ease;
    backdrop-filter: blur(10px);
}

body.dark footer {
    background-color: rgb(40, 40, 40) !important;
    color: inherit !important;
}

body.dark .text-muted {
    color: gray !important;
}

/* Aniamtions */

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}