html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
    font-family: "Inter";
}

*:not(.fa-solid):not(.fa-regular):not(.fa):not(.e-icons) {
    font-family: "Inter";
}

body {
    margin-bottom: 60px;
    background-color: #12161d;
    color: #fff;
}

/*.e-bigger {
    font-size: x-large;
}*/

/*NAVIGATION BAR*/
nav.navbar {
    background-color: rgba(18, 22, 29);
}

nav.navbar i{
    padding: 10px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
}

nav.navbar i:hover, nav.navbar img:hover {
    cursor: pointer;
    background-color: #48545f14;
    transform: scale(1.05) translateZ(0px);
}

nav.navbar {
    margin-left: 290px;
}

img.profile-pic {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-left: 10px;
}

.profile-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: rgba(72, 84, 95, 0.12);
    padding: 16px 20px;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 30px;
}

    .profile-wrapper .titles {
        line-height: 1;
    }

.logo-wrapper {
    height: 70px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.app-logo {
    padding: 10px 10px;
}

#sidebar-toggler {
    padding: 10px;
/*    border-radius: 50%;*/
    font-size: 1.2rem;
    cursor: pointer;
}

    #sidebar-toggler:hover {
        cursor: pointer;
/*        background-color: #48545f14;*/
        transform: scale(1.05) translateZ(0px);
    }

#sidebar.e-close {
    padding-left: 10px;
    padding-right: 10px;
}

    #sidebar.e-close .e-menu, #sidebar.e-close .e-menu .e-menu-item{
        width: 60px;
    }

    #sidebar.e-close .app-logo {
        display: none;
    }

#sidebar.e-close .e-anchor-wrap, #sidebar.e-close .e-menu-item.e-menu-caret-icon{
    font-size: 0px;
}

    #sidebar.e-close .profile-wrapper {
        padding: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #sidebar.e-close .profile-wrapper img {
        border: 1px solid white;
        margin: 0;
    }

#sidebar.e-close .profile-wrapper .titles {
    display: none !important;
}

    #sidebar.e-open .e-anchor-wrap,
    #sidebar.e-close .e-menu-icon, #sidebar.e-open e-menu-icon {
        visibility: visible;
    }

    #sidebar.e-open .profile-wrapper .titles, #sidebar.e-open .app-logo {
        display: flex;
    }

#sidebar.e-sidebar.e-right.e-close {
    visibility: visible;
    transform: translateX(0%);
}

#sidebar.e-open #sidebar-toggler:before {
    content: '\f100'
}

#sidebar.e-close #sidebar-toggler:before {
    content: '\f101'
}

#sidebar.e-close ~ .main-content {
    padding-left: 80px;
}

#sidebar.e-close ~ nav.navbar {
    margin-left: 80px;
}

.main-content {
    padding-left: 290px;
}

/*Breadcrumb*/
.e-breadcrumb a, e-breadcrumb a:hover {
    text-decoration: none !important;
    color: inherit !important;
}

/*Button*/
.btn-focus, .btn-active {
    outline: none !important;
    box-shadow: none;
}

/*Hyperlink*/
.no-a-decoration, .no-a-decoration:hover {
    text-decoration: none;
    color: inherit;
}

/*Widget*/
.widget {
    border-radius: 1rem;
    background-color: #1a222b;
}

/*Radio Button - Group Button*/
.e-btn-group.custom-rbt-group {
    width: 100%;
}

    .e-btn-group.custom-rbt-group .e-btn {
        width: 50%;
    }

.custom-rbt-group label.e-btn {
    box-shadow: none !important;
    border: 1px solid #fff;
    background-color: rgb(34 43 51);
    color: #fff;
}

.e-btn-group.custom-rbt-group input:checked + label.e-btn {
    background-color: #fff;
    color: #212b36;
    border: 1px solid #fff;
}

/*Task Container*/
.task-container {
    /*    width: 100%;
    max-width: 900px;*/
    background-color: #1a222b;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 15px;
    border: 1px solid #2a3a4d;
    color: #e0e0e0;
}

.task-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

.task-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.task-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .task-title-row input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin: 0;
        accent-color: #0d6efd; /* ? Bootstrap primary blue */
        cursor: pointer;
        border-radius: 4px;
        border: 2px solid #ccc;
        transition: all 0.2s ease-in-out;
    }

        .task-title-row input[type="checkbox"]:hover {
            border-color: #0d6efd;
            transform: scale(1.1);
        }

        .task-title-row input[type="checkbox"]:checked {
            accent-color: #198754; /* ? Bootstrap success green */
            border-color: #198754;
        }


.task-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.task-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.meta-item {
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
}

.category {
    background-color: #3498db;
    color: white;
}

.priority {
    background-color: #e74c3c;
    color: white;
}

.status {
    background-color: #f39c12;
    color: white;
}

.due-date {
    background-color: #2c3e50;
    color: #bdc3c7;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid #34495e;
}

.tags-section {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 500;
}

.tag-urgent {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.tag-meeting {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid #3498db;
}

.tag-study {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.progress-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.progress-bar {
    height: 6px;
    background-color: #2c3e50;
    border-radius: 3px;
    flex: 1;
    overflow: hidden;
    border: 1px solid #34495e;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #2ecc71, #1abc9c);
    border-radius: 3px;
    width: 33%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: #bdc3c7;
    white-space: nowrap;
    font-weight: 600;
}

.subtasks-container {
    display: grid;
    grid-template-columns: 1fr; /* Only 1 column */
    gap: 8px;
    margin-top: 10px;
}

.subtask-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    background-color: #22303d;
    border: 1px solid #2a3a4d;
}

.subtask-info {
    flex: 1;
    min-width: 0; /* This is crucial for text truncation to work */
}

.subtask-title {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Alternative if you're using Bootstrap, you can just use: */
.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ensure the buttons don't shrink */
.flex-shrink-0 {
    flex-shrink: 0;
}

.subtask-meta {
    display: flex;
    gap: 5px;
}

.subtask-priority, .subtask-status {
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
}

.priority-high {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.priority-medium {
    background-color: rgba(243, 156, 18, 0.2);
    color: #f39c12;
    border: 1px solid #f39c12;
}

.priority-low {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.status-pending {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid #3498db;
}

.status-in-progress {
    background-color: rgba(243, 156, 18, 0.2);
    color: #f39c12;
    border: 1px solid #f39c12;
}

.status-completed {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.footer {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #2a3a4d;
    color: #95a5a6;
    font-size: 0.75rem;
}

.completed {
    text-decoration: line-through;
    color: #7f8c8d;
}

.e-checkbox-wrapper {
    margin: 0;
}

    .e-checkbox-wrapper .e-frame {
        background-color: #2c3e50;
        border-color: #34495e;
    }

        .e-checkbox-wrapper .e-frame.e-check {
            background-color: #2ecc71;
            border-color: #2ecc71;
        }

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .task-header {
        flex-direction: column;
        gap: 6px;
    }

    .due-date {
        align-self: flex-start;
    }

    .subtasks-container {
        grid-template-columns: 1fr;
    }
}

/* Add Subtask Button */
/*.add-subtask-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    color: #666666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 16px;
}

    .add-subtask-btn:hover {
        background: #e9ecef;
        border-color: #adb5bd;
        color: #495057;
    }

    .add-subtask-btn::before {
        content: '+';
        font-size: 1.2rem;
        font-weight: bold;
    }*/


/*    SUBTASK LIST*/
.subtask-list-header {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #ffffff;
    border-bottom: 1px solid #2a3a4d;
    padding-bottom: 6px;
}

.subtask-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.subtask-list-item {
    background-color: #22303d;
    border: 1px solid #2a3a4d;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

    .subtask-list-item:hover {
        background-color: #2a3a4d;
        transform: translateY(-1px);
    }

.subtask-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ecf0f1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.no-subtask {
    color: #7f8c8d;
    font-size: 0.9rem;
    text-align: center;
    padding: 10px 0;
}

/*SIDEBAR*/
#sidebar {
    border-right: 1px dashed rgba(75,82,85,0.24);
    padding: 10px 20px;
}

.widget.summary > div:first-child {
    background-color: #222b33;
    padding: 1rem;
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
}

    .widget.summary > div:first-child i {
        font-weight: bold;
    }

.widget.pending > div:first-child {
    color: #F54927;
}

.widget.inprogress > div:first-child {
    color: #FFA500;
}

.widget.completedtask > div:first-child {
    color: #008000;
}

.widget.chart {
    padding: 5px;
}

/*MENU*/
#menu {
    width: 100% !important;
    background-color: inherit;
    overflow: hidden;
}

    #menu .e-menu-item {
        height: 50px;
        border-radius: 4px;
    }

    #menu .e-menu-item {
        box-sizing: border-box;
    }


        #menu .e-menu-item a {
            width: 100%;
            color: rgb(171, 163, 152);
            font-weight: 300;
            padding: 7px 5px;
            box-sizing: border-box;
        }

    #menu. e-anchor-wrap {
        display: inline-block;
    }

    #menu .e-menu-item .e-anchor-wrap span .e-menu-icon {
        color: rgb(171, 163, 152);
    }

/*    #menu .e-menu-item .e-separator {
        border: none;
        margin: 5px 5px;
        text-transform: uppercase;
        font-weight: bold;
        font-size: 13px;
        color: #65da41;
    }*/

/*        #menu .e-menu-item .e-separator:not(:first-child) {
            margin-top: 35px;
        }*/
