* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 0;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    font-family: "Varela Round", sans-serif;
    background: #f4f7fb;
    color: #183b56;
    overflow-x: hidden;
}

/* Global styles */

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.gray {
    color: #7b8a9a;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
}



body {
    display: flex;
}

/* Sidebar */

aside {
    width: 240px;
    height: 100vh;
    background: white;

    display: flex;
    flex-direction: column;

    justify-content: flex-start;
    padding: 16px;

    border-right: 1px solid #e4ebf3;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    margin-bottom: 20px;
    flex-shrink: 0;
}

.brand img {
    width: clamp(80px, 10vw, 150px);
    height: auto;
}

.nav-main {
    flex: 1;
    display: flex;
    justify-content: center;
}

.top-nav,
.bottom-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.top-nav li,
.bottom-nav li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 14px;

    cursor: pointer;
    transition: 0.25s ease;
}

.top-nav li:hover,
.bottom-nav li:hover {
    background: #eef4ff;
    color: #2979ff;
    transform: translateX(4px);
}

.top-nav li span,
.bottom-nav li span {
    font-size: 22px;
}

/* Main section */

main {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Main table */

.pre-segment {
    flex: 1;
    padding: 25px;
    overflow-y: auto;

    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* main header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome h2 {
    font-size: 2rem;
    margin-bottom: 4px;
}

.main-header nav {
    display: flex;
    gap: 14px;
}

.main-header nav span {
    background: white;
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: 0.2s;
}

.main-header nav span:hover {
    transform: scale(1.05);
}

/* main task */

.taskAssign {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.taskAssign-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.taskAssign-header button {
    border: none;
    background: #2979ff;
    color: white;
    padding: 12px 18px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.taskAssign-header button:hover {
    background: #1565e8;
}

.taskAssign main {
    display: flex;
    gap: 20px;
}

.taskAssign section {
    flex: 1;
    background: #f8fbff;
    border-radius: 18px;
    padding: 18px;
}

.taskAssign h3 {
    margin-bottom: 18px;
}

.task {
    background: white;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: 0.2s;
}

.task:hover {
    transform: translateY(-2px);
}

/* main dashboard */

.dashboard {
    display: flex;
    gap: 20px;
}

.progress-card,
.assignments-card {
    background: white;
    border-radius: 24px;
    padding: 22px;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.progress-card {
    flex: 2;
}

.assignments-card {
    flex: 1;
}

/* progress block */


.progress-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 24px;
}

.progress-card-head select {
    border: none;
    background: #f1f5fb;
    padding: 10px;
    border-radius: 10px;
}

.chart-section {
    display: flex;
    gap: 20px;
}

.y-axis {
    height: 220px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    color: #94a3b8;
}

.chart-area {
    flex: 1;
}

.bars {
    height: 220px;

    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.bar-track {
    flex: 1;
    height: 100%;

    background: #edf2f8;
    border-radius: 999px;

    overflow: hidden;

    display: flex;
    align-items: flex-end;
}

.fill {
    width: 100%;
    border-radius: 999px;
    background: linear-gradient(to top, #2979ff, #7cb8ff);
}

.x-axis {
    display: flex;
    justify-content: space-between;

    margin-top: 12px;

    color: #94a3b8;
}

.stats-side {
    width: 140px;

    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stat-group {
    background: #f8fbff;
    border-radius: 16px;
    padding: 14px;
}

.badge {
    display: inline-block;

    margin-top: 6px;

    background: #daf5e6;
    color: #12a150;

    padding: 4px 10px;
    border-radius: 999px;

    font-size: 0.8rem;
}

/* assignment block */

.task-list {
    margin-top: 20px;

    display: flex;
    flex-direction: column;
    gap: 16px;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: #f8fbff;
    padding: 14px;
    border-radius: 16px;
}

.task-info h4 {
    margin-bottom: 4px;
}

.task-grade {
    text-align: right;
}

/* right segment */

.post-segment {
    width: 360px;
    padding: 25px 20px;

    border-left: 1px solid #e4ebf3;

    overflow-y: auto;

    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* profilecard */
.post-header,
.priorities {
    background: white;
    border-radius: 24px;

    padding: 20px;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.quickDetail {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 24px;
}

.quickDetail img {
    width: 55px;
    height: 55px;

    border-radius: 50%;
    object-fit: cover;
}

/* personal tracker */

.tracker {
    background: #f8fbff;
    border-radius: 18px;
    padding: 18px;
}

.dates {
    display: flex;
    justify-content: space-between;

    margin: 18px 0;
}

.date {
    width: 42px;
    height: 60px;

    background: white;

    border-radius: 14px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    font-size: 0.9rem;
}

.day {
    font-size: 0.7rem;
    color: #94a3b8;
}

.timeline {
    display: flex;
    gap: 16px;
}

.time-column {
    display: flex;
    flex-direction: column;
    gap: 36px;

    font-size: 0.85rem;
}

.events-column {
    flex: 1;

    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event {
    background: white;
    border-left: 4px solid #2979ff;

    border-radius: 10px;

    padding: 12px;

    font-weight: 500;
}

/* priorities tasks */
.priorities h2 {
    margin-bottom: 18px;
}

.tasks {
    background: #f8fbff;

    border-radius: 14px;

    padding: 14px;

    display: flex;
    align-items: center;

    margin-bottom: 12px;
}

.checkbox {
    margin-right: 10px;

    width: 18px;
    height: 18px;
}

.seeAll {
    width: 100%;
    border: none;

    background: #2979ff;
    color: white;

    padding: 14px;

    border-radius: 14px;

    cursor: pointer;
    transition: 0.2s;
}

.seeAll:hover {
    background: #1565e8;
}


/* TASK ADD BOX */
.task-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
}

.scrollLock{
    overflow-y: hidden;
}

.task-overlay-active {
    opacity: 1;
    pointer-events: all;
}



.task-card {
    width: 90%;
    max-width: 500px;
    background: white;
    padding: 28px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}






.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-header h2 {
    font-size: 24px;
    color: #111827;
}

.close-btn {
    border: none;
    background: #eef2ff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}



.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.input-group label {
    font-weight: 600;
    color: #374151;
}

.input-group input,
.input-group textarea,
.input-group select {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #d1d5db;
    outline: none;
    font-size: 15px;
    transition: 0.3s;
}

.input-group textarea {
    resize: none;
    min-height: 120px;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    border-color: #1565e8;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}


.row {
    display: flex;
    gap: 14px;
}

.row .input-group {
    flex: 1;
}


.create-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 14px;
    background: #1565e8;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.create-btn:hover {
    background: #1565e8;
}















/* RESPONSIVE  */

@media (max-width: 1200px) {

    .dashboard,
    .taskAssign main {
        flex-direction: column;
    }

    .post-segment {
        display: none;
    }
}

@media (max-width: 900px) {

    aside {
        width: 70px;
        padding: 10px;
        align-items: center;
    }

    .brand {
        justify-content: center;
        align-items: center;
        margin-bottom: 15px;
        box-sizing: border-box;
        padding-top: 15px;
    }

    .brand img {
        width: 45px;
        display: flex;
        align-self: center;
    }

    .top-nav a,
    .bottom-nav a {
        display: none;
    }

    .top-nav li,
    .bottom-nav li {
        justify-content: center;
    }

    span {
        margin-right: 0;
    }
}

@media (max-width: 768px) {

    body {
        flex-direction: column;
    }

    aside {
        width: 100%;
        height: auto;

        flex-direction: row;
        align-items: center;
    }

    .top-nav,
    .bottom-nav {
        flex-direction: row;
    }

    main {
        width: 100%;
    }

    .chart-section {
        flex-direction: column;
    }

    .stats-side {
        width: 100%;
        flex-direction: row;
    }
}

@media(max-width:600px) {

    .task-card {
        padding: 20px;
    }

    .row {
        flex-direction: column;
    }

}