/* -------------------------------- */
/* MAIN                     */
/* -------------------------------- */
body {
    .bg-dark {
    background-color: #121212 !important;
    color: #ffffff !important;
    font-family: Arial, sans-serif;
}

    #current-user {
    font-size: 1.5rem;
    font-weight: bold;
}

/* -------------------------------- */
/* SIDEBAR                    */
/* -------------------------------- */
#sidebar {
    width: 250px;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: -250px;
    background-color: #1e1e1e;
    color: #ffffff;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease-in-out;
}


#sidebar.active {
    left: 0;
}

/* Sidebar Header */
#sidebar .sidebar-header {
    padding: 20px;
    text-align: center;
    background-color: #252525;
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: bold;
    border-bottom: 1px solid #333;
}

/* Sidebar Components */
#sidebar ul.components {
    padding: 0;
    margin: 40px;
    list-style: none;
}

#sidebar ul li {
    margin-bottom: 20px;
}

#sidebar ul li a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    font-size: 1.2rem;
    padding: 10px 20px;
    transition: all 0.3s ease-in-out;
}

#sidebar ul li a:hover {
    color: #ffffff;
    background-color: #333333;
    border-radius: 5px;
}




/* Sidebar Movement */
#content {
    margin-left: 0;
    transition: all 0.3s ease-in-out;
}

#content.shift {
    margin-left: 250px;
}

/* Toggle button */
#sidebarToggle {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #333333;
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    z-index: 1100;
}

#sidebarToggle:hover {
    background-color: #444444;
}



/* -------------------------------- */
/* Add Tasks /Edit Form Section     */
/* -------------------------------- */

.card {
    border-radius: 10px;
    background-color: #1e1e1e;
    color: #ffffff;
    position: relative;
}

.card-body {
    pointer-events: none;
}

.card-body * {
    pointer-events: auto;
}

/* Add Task Button */
.btn-primary {
    background-color: #bb86fc;
    border: none;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #985eff;
    color: #ffffff;
}

.btn-danger {
    background-color: #cf6679;
    border: none;
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #b55264;
    color: #ffffff;
}

/* FORM  */
.form-control {
    background-color: #1e1e1e;
    color: #ffffff;
    border: 1px solid #333;
}

.form-control::placeholder {
    color: #aaaaaa;
}

.form-control:focus {
    background-color: #2e2e2e;
    color: #ffffff;
    border-color: #bb86fc;
    outline: none;
}

/* Etykiety */
.form-label {
    color: #ffffff;
}

/* Lista zadań */
#tasks .card {
    margin-bottom: 1rem;
}

/* Odznaki */
.badge-secondary {
    background-color: #444;
    color: #fff;
}

.badge-danger {
    background-color: #cf6679;
    color: #fff;



/* SHARED LIST  */

#shared-users-list {
    display: none;
    background-color: #1e1e1e;
    color: #ffffff;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}


#shared-users li {
    background-color: #2e2e2e;
    color: #ffffff;
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#shared-users li:hover {
    background-color: #444;
}

#shared-users li .remove-user-btn {
    color: #dc3545;
    cursor: pointer;
}

#shared-users li .remove-user-btn:hover {
    color: #b21f2d;
}



.user-info-container {
    background-color: #2e2e2e;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    display: inline-block;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
}





/* -------------------------------- */
/* Recently Added Section (My Tasks)                  */
/* -------------------------------- */
.recently-added-section {
    border-top: 4px solid #bb86fc;
    padding-top: 10px;
    margin-top: 15px;
    background-color: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.recently-added-section h2 {
    font-size: 1.5rem;
    color: #cccccc;
    text-align: center;
    margin-bottom: 20px;
}

.recently-added-section::before {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: #444;
    margin: 10px;
}
}

/* Cards */
#recently-added .card {
    max-width: 250px;
    margin: 10px;
    border-radius: 25px;
    background-color: #1e1e1e;
    color: #ffffff;
    border: 1px solid #333;
    font-size: 0.85rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Card Icons */
#recently-added .card i {
    font-size: 0.7rem;
    margin-bottom: 5px;
    display: inline-block;
}
    #recently-added .card:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
    pointer-events: auto;
}

/* Card Badges */
#recently-added .badge {
    font-size: 0.75rem;
}

/* Card Delete Btn */
#recently-added .btn {
    font-size: 0.8rem;
    padding: 5px 10px;
    margin-top: 10px;
}
.recently-added-section {
    border-top: 2px solid #444;
    padding-top: 20px;
    margin-top: 30px;
    background-color: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}



/* SEARCH BAR */


.filter-button.active {
    background-color: #6c757d;
    color: white;
}

.search-bar {
    width: 300px;
}

#search-bar {
    background-color: #1e1e1e;
    color: #ffffff;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 10px;
    font-size: 1rem;
}

#search-bar::placeholder {
    color: #aaaaaa;
}

#search-bar:focus {
    outline: none;
    border-color: #bb86fc;
}
.btn-group .btn {
    margin-right: 5px;
    border-radius: 5px;
}

.btn-group .btn:hover {
    background-color: #444;
}
.completed {
    text-decoration: line-through;
    color: #6c757d;
}

}

.mark-completed {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.mark-completed.completed {
    background-color: #ffc107;
    color: #000;
}

.mark-completed.incomplete {
    background-color: #28a745;
    color: #fff;
}

.mark-completed:hover {
    opacity: 0.8;
}

/* -------------------------------- */
/* CALENDAR                  */
/* -------------------------------- */

#calendar-container {
    padding: 10px; /


    /* Calendar Box */

    .fc-daygrid-day {
          cursor: pointer;
        position: relative;
        transition: background-color 0.3s ease, transform 0.3s ease;
    }

    .fc-daygrid-day:hover {
        background-color: #2e2e2e;
        transform: scale(1.05);
        z-index: 1;
        cursor: pointer;
    }



    .fc-daygrid-day::after {
        content: '+'; /* Symbol plusa */
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 1.5rem;
        color: transparent;
        opacity: 0;
        transition: color 0.3s ease, opacity 0.3s ease;
    }


    /* + Sign */

    .fc-daygrid-day:hover::after {
        color: #bb86fc;
        opacity: 1;
    }

    .fc-col-header-cell {
        font-family: 'Roboto', sans-serif;
        font-weight: bold;
        font-size: 1.2rem;
        color: #bb86fc;
        text-transform: uppercase;
        padding: 10px 0;
    }

    .fc-daygrid-day-number {
        font-family: 'Roboto', sans-serif;
        font-size: 1.1rem;
        font-weight: 500;
        color: #ffffff;
        transition: color 0.3s ease, transform 0.3s ease;
    }

    .fc-daygrid-day:hover .fc-daygrid-day-number {
        color: #bb86fc;
        transform: scale(1.1);
    }



    /* Show more tasks button" */

    .fc-daygrid-more-link {
        background-color: transparent;
        color: #bb86fc !important;
        font-weight: bold;
        font-size: 0.9rem;
        text-decoration: underline;
        cursor: pointer;
        display: block;
        margin-top: 5px;
        text-align: center;
        transition: color 0.3s ease;
    }

    .fc-daygrid-more-link:hover {
        color: #985eff !important;
    }
}


/* Animate add task section  */
.task-form-animate {
    animation: pulse 0.8s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(187, 134, 252, 0);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(187, 134, 252, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(187, 134, 252, 0);
    }
}







/* -------------------------------- */
/* USER INFO STYLE                */
/* -------------------------------- */
.user-info-container {
    background-color: #2e2e2e; /* Ciemnoszare tło */
    padding: 10px 15px; /* Wewnętrzne odstępy */
    border-radius: 8px; /* Zaokrąglone rogi */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Subtelny cień */
    display: inline-block;
    position: fixed;
    top: 10px; /* Odległość od góry */
    right: 10px; /* Odległość od prawej */
    z-index: 1000; /* Na wierzchu innych elementów */
}

.user-info-text {
    color: #ffffff; /* Jasny tekst */
    font-size: 1rem; /* Rozmiar tekstu */
    font-weight: 500; /* Półgruby tekst */
    display: flex;
    align-items: center; /* Wyrównanie w pionie */
    gap: 10px; /* Odstęp między ikoną a tekstem */
    font-family: 'Roboto', sans-serif; /* Elegancka czcionka */
}

/* User icon */
.user-info-text i {
    font-size: 1.5rem; /* Większa ikona */
    color: #bb86fc; /* Fioletowy kolor */
}



/* -------------------------------- */
/* NOTIFICATION                  */
/* -------------------------------- */

#notification-container {
    position: relative;
}

#notification-dropdown {
    position: absolute;
    right: 0;
    background-color: #1e1e1e;
    border: 1px solid #444;
    border-radius: 5px;
    max-width: 300px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

#notification-list li {
    padding: 10px;
    border-bottom: 1px solid #333;
}

#notification-list li.bg-light {
    background-color: #2e2e2e;
}

#notification-count {
    font-size: 0.8rem;
    padding: 0.25em 0.4em;
}

.bg-warning {
    background-color: #ffeeba !important; /* Jasnożółty kolor */
}