@import url('https://fonts.googleapis.com/css2?family=Stack+Sans+Text:wght@200..700&display=swap');

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

:root {
    --font: "Stack Sans Text", sans-serif;
    --primary: #d4c5a9;
    --secondary: #F5F0E8;
    --accent: #B89F7A;
    --light: #FAF8F5;
    --dark: #1C1A18;
    --text: #5C5349;
    --today: #C9A87C;
    --selected: #E8DFD0;
    --event-panel-bg: #F5F0E8;
}

body {
    font-family: var(--font);
    min-height: 100vh;
    background: var(--dark);
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr;
}

/* for the gretting bar */
.greeting-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.07);
    width: 100%;
    margin-bottom: 30px;
}

.greeting-text {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.greeting-label {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.greeting-name {
    font-size: 1.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: -0.02em;
    line-height: 1;
}

.greeting-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.greeting-date {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.04em;
    text-transform: uppercase;

}

/* for achievemtn badge  */
.achievement-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(184, 159, 122, 0.12);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}



.greeting-time {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: -0.01em;
    opacity: 0.8;
}

/* for the side nav-bar */
#sidebar {
    box-sizing: border-box;
    height: 100vh;
    width: 250px;
    padding: 5px 1em;
    background-color: #252220;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    align-self: start;
    transition: width 0.4s ease;
    overflow: hidden;
    text-wrap: wrap;
    /* top is refrence for the sticky thing  */
}

#sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#sidebar>ul>li:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4px 14px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);

    .logo {
        /* css nesting use vaxw */
        font-weight: 800;
    }
}
.logo img{
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 6px;
    justify-content: center;
    align-items: center;
    background: transparent;
}

#sidebar>ul>li:first-child .logo {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--primary)
}

#sidebar ul li.active a {
    background: rgba(212, 197, 169, 0.1);
    color: var(--primary);
}

/* this was done for the svg */
#sidebar ul li a svg {
    fill: currentColor;
    flex-shrink: 0;
}

#sidebar ul li a i {
    font-size: 1rem;
    flex-shrink: 0;
    /* Prevents from shrinkin gdue to flex property  */

}

.dropdown-btn {
    width: 100%;
    color: rgba(255, 255, 255, 0.5);
    text-align: left;
    background: none;
    font: inherit;
    cursor: pointer;
    border-radius: 8px;
    padding: 9px 12px;
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--primary);

}



#sidebar ul li a {
    border-radius: 8px;
    padding: 9px 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
    margin-bottom: 2px;
}

#sidebar ul li a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--primary);
}



#sidebar .sub-menu {
    display: grid;
    grid-template-rows: 0fr;
    /* when showing up this should be grid-template-row :1fr:    list-style: none; */
    padding-left: 44px;
    margin-top: 2px;
    transition: grid-template-rows 0.4s ease;

    >div {
        overflow: hidden;
    }
}

#sidebar .sub-menu.show {
    grid-template-rows: 1fr;
}

#sidebar.close {
    padding: 8px 6px;
    width: 58px;
}

#sidebar.close .logo {
    display: none;
}

#sidebar.close span {
    display: none;
}

#sidebar.close .dropdown-arrow {
    display: none;
}

#sidebar.close a,
#sidebar.close .dropdown-btn {
    justify-content: center;
    padding: 10px 0;
}

#sidebar.close #toggle-btn {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
}

.dropdown-arrow {
    margin-left: auto;
    opacity: 0.5;
    transition: transform 0.4s ease;
    font-size: 0.85rem;
}

/* for the rotation of the icon when clicking  */
.dropdown-arrow.rotated {
    transform: rotate(180deg);
}

#toggle-btn {
    margin-left: auto;
    padding: 7px;
    border: none;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.06);
    transition: all 0.25s ease;
    color: rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

#toggle-btn.rotated {
    transform: rotate(180deg);
}

#toggle-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--primary);
}








.main {
    padding: 25px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    margin-right: 0;
    padding-right: 0;
}



.main-container {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    gap: 20px;
    max-width: 100%;
    width: 100%;
    flex-wrap: nowrap;
    align-items: flex-start;

}

.calender-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 10px;
    max-width: 320px;
    width: 100%;
    flex: 1;
    min-width: 300px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calender-container:hover {
    transform: translatey(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.calender-header {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    color: var(--dark);
    background: linear-gradient(135deg, var(--primary) 0%, #ede3d4 100%);
    padding: 1.4rem 1rem;
    min-height: 70px;
    overflow: visible;
    position: relative;
}

.moth-year {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    letter-spacing: -0.01;
}

.calender-nav-buttons {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding-left: 1rem;
    padding-right: 1rem;
    justify-content: space-between;
    width: 100%;
    left: 0;
}

.calnav-btn {
    background: var(--dark);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calnav-btn:hover {
    background: var(--accent);
    transform: scale(1.1);
}

.week-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    /* this makes the 7 coloumn in the line  */
    padding: 0.5rem 0.8rem;
    background: var(--text);
    font-weight: 800;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 0.7rem;
}

.day {
    aspect-ratio: 1;
    /* this makes the square shape alright */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--dark);
    cursor: pointer;
    position: relative;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.day:hover {
    background: rgba(184, 159, 122, 0.15);
    transform: scale(1.1);
}

.day.today {
    background: var(--today);
    color: var(--dark);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(201, 168, 124, 0.45);
}

.day.selected {
    background: var(--selected);
    color: var(--dark);
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(28, 26, 24, 0.15);
    animation: pop 0.3s ease;
}

@keyframes pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* this is for the days for the remaning days of the month that don't lie on the month  */
.day.other-month {
    /* i.e left out days in the month that is in grey */
    color: var(--text);
    opacity: 0.4;
}

.day.has-event::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
}

.weekday {
    text-align: center;
    padding: 0.5rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.calender-footer {
    padding: 0.8rem 1rem;
    text-align: center;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(28, 26, 24, 0.1);
    background: var(--light);
}

.today-btn {
    background: var(--dark);
    color: var(--primary);
    border: none;
    padding: 7px 16px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
}

.today-btn:hover {
    transform: translateY(-5px);
    background: var(--accent);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.event-indicator {
    font-size: 0.8rem;
    color: var(--text);
    display: flex;
    align-items: center;
    font-weight: 600;
    gap: 7px;
}

.dot-indicator {
    font-size: 0.75rem;
    color: var(--text);
    background: var;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

/* Event pannel start  */
.event-panel {
    background: white;
    display: flex;
    flex-direction: column;
    max-width: 300px;
    height: fit-content;
    border-radius: 20px;
    padding: 1.5rem;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #1C1A18;
}

.add-event-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #4caf50;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, color 0.2s ease;
    padding: 0;
    line-height: 1;
}

.add-event-toggle-btn:hover {
    transform: scale(1.1);
    color: #388e3c;
}

.add-event-form {
    margin-top: 1.5rem;
    border-top: 1px solid var(--text);
    padding-top: 1rem;
    display: none;
}

.add-event-form.visible {
    display: block;
}

.add-event-form select {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 13px;
    border-radius: 6px;
    font-family: inherit;
    border: 1px solid var(--accent);
    background: var(--light);
    color: var(--dark);
    cursor: pointer;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
}

.add-event-form select:focus,
.add-event-form input:focus {
    /* focus mean user has tapped it alrght */
    outline: none;
    border-color: var(--today);
}

.event-date {
    font-weight: 600;
    font-size: 1rem;
}

.event-list {
    max-height: 350px;
    overflow-y: auto;
}

.no-events {
    text-align: center;
    color: var(--dark);
    padding: 2rem 1rem;
    font-style: italic;
}

.event-icon {
    font-size: 1.2rem;
    color: var(--dark);
    margin-right: 10px;
}

.event-panel {
    max-width: 400px;
}

.event-date {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark)
}

.event-list {
    max-height: 350px;
    overflow-y: auto;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px;
    margin-bottom: 0.2rem;
    border-radius: 10px;
    background: (var(--secondary));
    border: 1px solid var(--accent);
    transition: transform 0.8s ease;
    margin-right: 4px;
    margin-left: 4px;
}

.event-item:hover {
    transform: translateX(3px);
}

.event-color {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--dark);
    flex-shrink: 0;
}

.event-time {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent);
    min-width: 80px;
}

.event-text {
    font-size: 0.9rem;
    color: var(--dark);
}


.event-list {
    scrollbar-width: none;
    /* for firefox */
}

.event-list::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}


/* pomodoro css */
.pomodoro-container {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: conic-gradient(var(--accent) 0deg, #3a3229 0deg);
    /* used cause it is a circel  */
    box-shadow: 0 0 0 8px #2e2a26, 0 0 0 10px #3a3229, 0 8px 32px rgba(0, 0, 0, 0.45);
}

.pomodoro-container::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: #252220;
    z-index: 0;
}

.pomodoro-container>* {
    position: relative;
    z-index: 1;
}

.pomodoro-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 0 8px #2e2a26, 0 0 0 10px #3a3229, 0 16px 40px rgba(0, 0, 0, 0.6);
}

.pompdoro-title {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0;
}

#timer {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
    line-height: 1;

}

.pomo-btn-wrapper1 {
    display: flex;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50px;
    border: none;
}

.pomo-btn-wrapper1 button {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 3px 7px;
    border-radius: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.pomo-btn-wrapper1 button:hover {
    opacity: 1;
    background-color: var(--accent);
    color: var(--dark);

}


/* css for the add and delete eveent btn */
.delete-event-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text);
    font: 1.3rem;
    cursor: pointer;
    padding: 0 0.2em;
    transition: color 0.2s;
}

.delete-event-btn:hover {
    color: red;
    /* i added red for showing danger */
}

.complete-event-btn {
    background: none;
    border: none;
    color: #4CAF50;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 0.2em;
    transition: transform 0.2s, color 0.2s;
    margin-left: auto;
}

.complete-event-btn:hover {
    transform: scale(1.2);
    color: #388e3c;
}












.add-event-form {
    margin-top: 1.5rem;
    border-top: 1px solid var(--text);
    /* this thing will work like hr creating horizontal line  */
    padding-top: 1rem;
}

.add-event-form h4 {
    margin-bottom: 0.5rem;
    align-items: center;
    justify-content: center;
    display: flex;
    color: var(--dark);
}

.add-event-form input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 13px;
    /* giving a good border for input of the user */
    border-radius: 6px;
    font-family: inherit;
    border: 1px solid var(--accent);
    background: var(--light);
    color: var(--dark);
    cursor: pointer;
}

.add-event-form select {
    appearance: none;

}

.add-event-form button {
    background: var(--dark);
    color: var(--primary);
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.add-event-form button:hover {
    background: var(--accent);
    color: white;
}


/* css for the pomodoro seprate from the navbar */
#focus-overlay {
    position: fixed;
    inset: 0;
    /* inset means making all top right bottom left all 0  */
    /* for the slidebar */
    z-index: 999;
    background-color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    transition: margin-left 0.4s ease;
    /* same transition cause we need to move it simultaniously since overlay backside will show up if not shown  */
}

#focus-overlay {
    margin-left: 250px;
}

#sidebar.close~* #focus-overlay,
body:has(#sidebar.close) #focus-overlay {
    /* This means select a #focus-overlay that is the all the descendant of all sibling of hte sidebar.close */
    margin-left: 58px;
}

.focus-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.focus-label {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    color: var(--accent);
}

.focus-timer {
    font-size: clamp(5rem, 15vw, 11rem);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.04rem;
    line-height: 1;
}

.pomo-btn-wrapper {
    display: flex;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 23px;
    border-radius: 100px;
}

.pomo-btn-wrapper button {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
}

.pomo-btn-wrapper button:hover {
    background: var(--accent);
    color: white;
}

.focus-close {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.4);
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.focus-close:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* these are the keyframes for the pomodoro overlay  */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* authorization css  */
#auth-modal {
    position: fixed;
    inset: 0;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    /* for makingit lie at the top of the top */
}

.auth-box {
    background: #252220;
    padding: 2.6rem;
    border-radius: 20px;
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    text-align: center;
}

.auth-sub {
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    font-size: 0.85rem;
}

.auth-tabs {
    display: flex;
    gap: 0.8rem;
}

.auth-tab {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab.active {
    background: var(--accent);
    color: var(--dark);
}

.auth-box input:focus {
    outline: none;
    border-color: var(--accent);
}

.auth-box input {
    padding: 0.7rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    font-family: inherit;
    font-size: 0.9rem;
}

.auth-box>button {
    padding: 0.75rem;
    border-radius: 10px;
    border: none;
    background: var(--accent);
    color: var(--dark);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

auth-box>button:hover {
    /* here the css selector targets the every button that is a direct child of an element wiht the class auth-box */
    background: var(--today);
}

/* for achievement panel */
.achievement-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 400px;
    background: #1e1c1a;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    padding: 2rem;
    z-index: 1100;
    overflow-y: auto;
    animation: slideIn 0.3 cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
}

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

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.achievement-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    ;
    font-size: 1.2rem;
}

.achievement-panel-header h2 {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 800;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    padding-left: 4.2px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 0px;
}

.user-info i {

    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;

}

.user-info span {
    overflow: hidden;
    text-overflow: ellipsis;
}

#opp {
    margin-top: auto;
}

/* //contribution depict start  */

.contrib-container {
    background: white;
    border: 1px solid rgba(28, 26, 24, 0.12);
    border-radius: 20px;
    padding: 1rem 1.25rem;
    width: 100%;
    height: auto;
    flex: 2;
    max-width: 500px;
    margin-top: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contrib-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.contrib-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 0.75rem;
    border-bottom: 0.5px solid rgba(28, 26, 24, 0.15);
    margin-bottom: 1rem;
}

.contrib-title {
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--dark);
}

.contrib-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    opacity: 0.6;
}

.contrib-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
    margin-bottom: 1rem;

}

.contrib-stat {
    background: var(--secondary);
    border-radius: 10px;
    padding: 0.6rem;
    text-align: center;
}

.contrib-stat-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.contrib-stat-val {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
}

.cg-month-row {
    position: relative;
    height: 16px;
    margin-left: 28px;
    margin-bottom: 3px;
}

.cg-month {
    position: absolute;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text);
    opacity: 0.55;
    white-space: nowrap;
    letter-spacing: -0.02em;

}

.cg-grid-body {
    display: flex;
    gap: 3px;
}

.cg-day-labels {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
    padding-top: 2px;
}

.cg-day-label {
    height: 14px;
    width: 24px;
    width: 24px;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text);
    opacity: 0.5;
    text-align: right;
    padding-right: 4px;
    line-height: 14px;
}

.cg-grid-wrap {
    overflow-x: auto;
    scrollbar-width: none;
}

.cg-grid-wrap::-webkit-scrollbar {
    display: none;
}

/* this hides the scrollbar  */
#cg-weeks {
    display: flex;
    flex-direction: col;
    gap: 2px;
}


.cg-box {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    cursor: pointer;
    transition: transform 0.12s ease;
}

.cg-box:hover {
    transform: scale(1.4);
}

.cg-0 {
    background: #EDE8E0;
}

.cg-1 {
    background: #D4B896;
}

.cg-2 {
    background: #C9A87C;
}

.cg-3 {
    background: #B89F7A;
}

.cg-4 {
    background: #8B6914;
}

.cg-future {
    background: transparent;
    cursor: default;
}

.cg-future:hover {
    background: rgba(28, 26, 24, 0.06);
    cursor: default;
    transform: none;
}

.cg-today {
    outline: 0.5px solid var(--dark);
    outline-offset: 1px;
}

.cg-box {
    display: flex;
}

.cg-change {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin-top: 10px;
}

.cg-change-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text);
    opacity: 0.6;
}

.cg-change-boxes {
    display: flex;
    gap: 3px;
}

.cg-change-box {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}




/* I have copied this from my previous project  */
/* The sathi ai part  */
.main-chat-container {
    width: 100%;
    height: calc(100vh - 120px);
    display: none;
    flex-direction: column;
    margin-top: 30px;
    margin-bottom: 20px;
    background: #1e1c1a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    overflow: hidden;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);

}

header {
    background: #252220;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;

}

header h1 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.04em;
}

.newchat {
    background: rgba(184, 159, 122, 0.12);
    color: var(--accent);
    border: 1px solid black;
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}

.newchat:hover {
    background: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
}

.chat-box {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: none;
}

.chat-box::-webkit-scrollbar {
    display: none;
}

.main-chat-container header p {
    font-size: 10px;
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    color: var(--primary);
    justify-content: center;
    align-items: center;
}

/* for not showig scrollbar */
.message {
    margin: 10px 0;
    padding: 12px 16px;
    border-radius: 16px;
    max-width: 78%;
    line-height: 1.6;
}

.message-user {
    background: var(--accent);
    color: var(--dark);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

.message-bot {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.input-area {
    display: flex;
    padding: 10px;
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    background: #252220;

}

#user-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary);
    border-radius: 10px;
    padding: 10px 5px;
}

#user-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
    font-weight: 500;
    font-size: 0.85rem;
}

#user-input:focus {
    outline: none;
    border-color: var(--accent);
}

#send-btn {
    padding: 10px 15px;
    margin-left: 5px;
    border-radius: 25px;
    cursor: pointer;
    background: var(--accent);
    outline: none;
    color: var(--dark);
    transition: background 0.3s;
}

#send-btn:hover {
    background: var(--today);
    transform: scale(0.97);
    outline: none;
}

/* for the note feature  */
.notes-app {
    width: 100%;
    margin-top: 20px;
    display: none;
}

.notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notes-header h2 {
    color: var(--primary);
    font-size: 1.6rem;
    font-weight: 600;
}

.add-new-note {
    background: var(--accent);
    padding: 8px 18px;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-new-note:hover {
    background-color: var(--today);
    transform: scale(0.96);
}

.notes-wrapper {
    display: grid;
    /* as there will be many notes that we willbe presenting in the grid format  */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

/* notebaksa that will be displayed though java hai */
.note-baksa {
    background: #252220;
    border-radius: 16px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.note-baksa:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 5px grey;
}

.note-baksa .details {
    flex: 1;
    overflow-y: auto;
    max-height: 160px;
    margin-bottom: 12px;
}

.notes-app .popup {
    display: none;
    background: #252220;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 28px;
    width: 100%;
    max-width: 560px;
    animation: formslidegrney 0.25s ease;
}

.notes-app .popup.form-visible {
    display: block;
}

@keyframes formslidegrney {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* for the scrolling hide ing  */

/* for the note feature  */
.notes-app {
    width: 100%;
    margin-top: 20px;
    display: none;
}

.notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notes-header h2 {
    color: var(--primary);
    font-size: 1.6rem;
    font-weight: 600;
}

.add-new-note {
    background: var(--accent);
    padding: 8px 18px;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-new-note:hover {
    background-color: var(--today);
    transform: scale(0.96);
}

.notes-wrapper {
    display: grid;
    /* as there will be many notes that we willbe presenting in the grid format  */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

/* notebaksa that will be displayed though java hai */
.note-baksa {
    background: #252220;
    border-radius: 16px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.note-baksa:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 5px grey;
}

.note-baksa .details {
    flex: 1;
    overflow-y: auto;
    max-height: 160px;
    margin-bottom: 12px;
}

.notes-app .popup {
    display: none;
    background: #252220;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 28px;
    width: 100%;
    max-width: 560px;
    animation: formslidegrney 0.25s ease;
}

.notes-app .popup.form-visible {
    display: block;
}

@keyframes formslidegrney {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* for the scrolling hide ing  */
.popup .content::-webkit-scrollbar {
    display: none;
}

#note-title::-webkit-scrollbar,
#note-desc::-webkit-scrollbar {
    display: none;
}







/* for the popup filling  */
.popup-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1000;
}

.popup-box.show {
    opacity: 1;
    pointer-events: auto;
}

.popup-box .popup {
    background: #252220;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
}

.notes-app .popup .content header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

}

.notes-app .popup .content header p {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.notes-app .popup .content header i {
    font-size: 1.1rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

.notes-app .popup .content header i:hover {
    color: var(--accent);
}

/* css for the form that is gonna be going to displayed  */

.notes-app .popup .content form {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.notes-app .row-title,
.notes-app .row-description {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.notes-app .row-title label,
.notes-app .row-description label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
}

.notes-app #note-title {
    height: 42px;
    resize: none;
    overflow: hidden;
    line-height: 1.4;
}

.notes-app #note-desc {
    height: 100px;
    resize: vertical;
}

.notes-app #save-note {
    align-self: flex-end;
    width: auto;
    padding: 9px 28px;
    border-radius: 40px;
    background: var(--accent);
    color: var(--dark);
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.notes-app #save-note:hover {
    background: var(--today);
}

/* for the seprate card text  */

.note-title-text {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.note-desc-text {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.55;
}

.note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.note-date {
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 600;
}

.note-actions {
    display: flex;
    gap: 8px;
}

.note-edit-btn,
.note-del-btn {
    background: none;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.note-edit-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--primary);
}

.note-del-btn {
    border: 1px solid rgba(255, 80, 80, 0.3);
    color: #ff6b6b;
}

.note-del-btn:hover {
    background: rgba(255, 80, 80, 0.1);
}

.no-notes-msg {
    color: rgba(255, 255, 255, 0.25);
    font-style: italic;
    font-size: 0.9rem;
    grid-column: 1/-1;
    /* grid will strech across all the coloumns alright  */
}


.popup input,
.popup textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--light);
    font-family: inherit;
    font-size: 0.9rem;
}

.popup textarea {
    height: 120px;
    resize: vertical;
}

.popup button {
    background: var(--accent);
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 40px;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    transition: 0.2s;
}

.popup button:hover {
    background: var(--today);
}

#notes-fillup {
    display: none !important;
    /* important makes this css rule super important than rest of it  */
}

#note-title::-webkit-scrollbar,
#note-desc::-webkit-scrollbar {
    display: none;
}

.note-baksa .details::-webkit-scrollbar {
    display: none;
}







/* for the popup filling  */
.popup-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1000;
}

.popup-box.show {
    opacity: 1;
    pointer-events: auto;
}

.popup-box .popup {
    background: #252220;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
}

.notes-app .popup .content header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

}

.notes-app .popup .content header p {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.notes-app .popup .content header i {
    font-size: 1.1rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

.notes-app .popup .content header i:hover {
    color: var(--accent);
}

/* css for the form that is gonna be going to displayed  */

.notes-app .popup .content form {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.notes-app .row-title,
.notes-app .row-description {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.notes-app .row-title label,
.notes-app .row-description label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
}

.notes-app #note-title {
    height: 42px;
    resize: none;
    overflow: hidden;
    line-height: 1.4;
}

.notes-app #note-desc {
    height: 100px;
    resize: vertical;
}

.notes-app #save-note {
    align-self: flex-end;
    width: auto;
    padding: 9px 28px;
    border-radius: 40px;
    background: var(--accent);
    color: var(--dark);
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.notes-app #save-note:hover {
    background: var(--today);
}

/* for the seprate card text  */

.note-title-text {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.note-desc-text {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.55;
}

.note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.note-date {
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 600;
}

.note-actions {
    display: flex;
    gap: 8px;
}

.note-edit-btn,
.note-del-btn {
    background: none;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.note-edit-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--primary);
}

.note-del-btn {
    border: 1px solid rgba(255, 80, 80, 0.3);
    color: #ff6b6b;
}

.note-del-btn:hover {
    background: rgba(255, 80, 80, 0.1);
}

.no-notes-msg {
    color: rgba(255, 255, 255, 0.25);
    font-style: italic;
    font-size: 0.9rem;
    grid-column: 1/-1;
    /* grid will strech across all the coloumns alright  */
}


.popup input,
.popup textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--light);
    font-family: inherit;
    font-size: 0.9rem;
}

.popup textarea {
    height: 120px;
    resize: vertical;
}

.popup button {
    background: var(--accent);
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 40px;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    transition: 0.2s;
}

.popup button:hover {
    background: var(--today);
}

#notes-fillup {
    display: none !important;
    /* important makes this css rule super important than rest of it  */
}


/* css for the achievenent pannel  */
.achievement-day-group {
    margin-bottom: 0.5rem;
}

.achievement-day-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px;
    margin-bottom: 6px;
}

/* for the date that the task is being done  */
.achievement-day-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -.04em;
    text-transform: uppercase;
}

/* kati task gryo vannih ko lagi  */
.achievement-day-count {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 600;

}

.achievement-table {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
}

/* //euta row lai arrange grney  */
.achievement-row {
    display: grid;
    grid-template-columns: 32px 80px 1fr 32px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solidrgba(255, 255, 255, 0.04);
    transition: background 0.15s ease;
}

/* for good css i am adding this which makes last child have no border  */
.achievement-row:last-child {
    border-bottom: none;
}

.achievement-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.achievement-row-num {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
    font-weight: 700;
}
.achievement-row-time{
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
}
.achievement-row-text {
    font-size: 0.85rem;
    color: var(--primary);
}
.achievement-row-badge {
    /* for that tick thing  */
    font-size: 0.8rem;
    color: #4CAF50;
    font-weight: 700;
    text-align: center;
}
.achievement-divider{
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    margin: 1rem 0;
}







/* //cahgne password model  */
#password-modal,
#forgot-modal {
    position: fixed;
    inset: 0;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.auth-error-msg {
    color: #ff6b6b;
    font-size: 0.8rem;
    display: none;
}

.auth-success-msg {
    color: #6bdf8f;
    font-size: 0.8rem;
    display: none;
}

.auth-box .auth-cancel-btn {
    margin-top: 4px;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-box .auth-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--primary);
}

.auth-forgot-link {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.8rem;
    text-align: center;
    cursor: pointer;
    padding: 0;
    margin-top: -6px;
    
}

