@import url('https://fonts.googleapis.com/css2?family=Playwrite+AU+SA:wght@100..400&family=Quicksand:wght@700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playwrite+AU+SA:wght@100..400&family=Quicksand:wght@500&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playwrite+AU+SA:wght@100..400&family=Quicksand&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --bgcolor: #ffffff;
    --primary-color: #d62828;
    --secondary-color: #f77f00;
    --accent-color: #003049;
    --btn-color: #fb8b24;
    --text-color: #0d1b2a;
    --todo-color: #219ebc;
    --box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    --border-radius: 15px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
}
body {
    background: url("BackGround.jpeg") no-repeat center;
    background-size: cover;
    backdrop-filter: blur(10px);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.App {
    position: relative;
    width: 600px;
    height: 95vh;
    background-color: var(--bgcolor);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: var(--primary-color);
    color: #fff;
    font-weight: bold;
    box-shadow: var(--box-shadow);
}
header i {
    font-size: 1.5em;
    cursor: pointer;
}
header .title {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}
header .title span:first-child {
    font-size: 1.8em;
}
header .title span:last-child {
    font-size: 1.1em;
    font-weight: 400;
    color: #fff;
}

/* Sidebar */
.sidebar {
    position: absolute;
    top: 0px;
    left: -300px;
    width: 300px;
    height: 100%;
    background-color: var(--accent-color);
    color: #fff;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: left 0.3s ease-in-out;
    z-index: 10;
}
.sidebar.open {
    left: 0;
}

.sidebar i {
    font-size: 1.5em;
    color: #fff;
    cursor: pointer;
    align-self: flex-end;
    transition: 0.5s;
}
.sidebar i:hover {
    transform: rotate(180deg);
}

 /* input */
.inputField {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.inputField span {
    font-size: 1.2em;
    color: var(--primary-color);
    font-weight: 600;
}
.inputField input {
    padding: 10px;
    font-size: 1em;
    font-weight: 600;
    text-transform: capitalize;
    border: 2px solid #ccc;
    border-radius: 5px;
    outline: none;
    background-color: #fff;
}

/* Submit button */
.submit {
    padding: 12px;
    font-size: 1em;
    font-weight: bold;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    outline: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    box-shadow: var(--box-shadow);
    transition: all 0.2s;
}
.submit:hover {
    background-color: #ef2b2b;
}
.submit:active {
    background-color: #fd6d70;
    box-shadow: none;
}
.copyright{
    position: absolute;
    bottom: 25px;
    left: 0;
    padding: 10px;
}
.copyright h3{
    font-size: 0.8em;
    text-align: center;
}
@keyframes shake {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    50% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}
.submit.shake {
    animation: shake .5s ease-in-out;
}

/* Container */
.Container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 98%;
    height: 82vh;
    margin: auto;
}
.section {
    height: 100%;
    display: none;
}
.section.visible {
    display: block;
}

/* welcome message */
.mainMessage {
    color: var(--text-color);
    font-size: 1em;
    font-weight: 500;
    padding: 15px 30px;
    line-height: 1.3em;
    animation: fadeIn 0.3s ease-in-out;
    transition: all .3s;
}
.mainMessage h3 {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--primary-color);
}
.mainMessage h3 span {
    color: var(--secondary-color);
    font-style: italic;
}
.mainMessage h2 {
    font-size: 1.5em;
    font-weight: 600;
    margin: 10px 0;
    color: var(--secondary-color);
}
.mainMessage h2 span {
    color: var(--primary-color);
}
.mainMessage p {
    font-size: 1.6em;
    font-weight: 400;
}
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* tasks info */
.mainPageTasks {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    gap: 10px;
}
.boxOfTask {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 48%;
    padding: 15px;
    border: 2px dashed var(--accent-color);
    border-radius: var(--border-radius);
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
    transition: all 0.3s;
}
.boxOfTask i {
    font-size: 1.8em;
    width: 25px;
    margin: auto;
    color: var(--secondary-color);
    transition: 0.6s;
}
.boxOfTask i:hover {
    transform: rotate(360deg);
}
.mainPageTasks .boxOfTask h3 {
    font-size: 1.2em;
    color: var(--text-color);
}
.mainPageTasks .boxOfTask .infoTasks {
    font-size: 2em;
    font-weight: 500;
    color: var(--secondary-color);
}


/* button Controls*/
.buttonsControl {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 9%;
    border-top: 3px dashed var(--text-color);
}
.buttonsControl .controeBtn {
    padding: 20px 20px;
    font-size: 1.2em;
    font-weight: 600;
    width: 30%;
    background-color: var(--btn-color);
    color: #fff;
    outline: none;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.buttonsControl .controeBtn.toRed {
    background-color: var(--primary-color);
}
.buttonsControl .controeBtn:hover {
    background-color: #ee3232;
}
.buttonsControl .controeBtn:active {
    background-color: #eb6161;
}

/* scrill section */
.section {
    overflow: scroll;
}
::-webkit-scrollbar {
    width: 5px;
    height: 0px;
}
::-webkit-scrollbar-track {
    background-color: transparent;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background-color: #888; 
    border-radius: 10px;  
}
::-webkit-scrollbar-thumb:hover {
    background-color: #888;
}
  
/* To do list */
.TODO {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 10px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.TODO h1 {
    color: var(--todo-color);
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}
.TODO .SearchBox {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
    position: relative;
}
.TODO .SearchBox input {
    flex: 1;
    background-color: #fff;
    color: var(--text-color);
    font-size: 1.2em;
    font-weight: 600;
    border-radius: 50px;
    padding: 12px 20px;
    border: 2px solid var(--todo-color);
    outline: none;
    box-sizing: border-box;
    transition: border 0.3s ease;
}
.TODO .SearchBox input:focus {
    border-color: #ffaa00;
}
.TODO .SearchBox button {
    background-color: var(--todo-color);
    color: white;
    font-size: 1.2em;
    border-radius: 50px;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.TODO .SearchBox button:hover {
    background-color: #127f9a;
}
.tasks {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 10px;
}
.TaskItem {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--todo-color);
    padding: 12px 20px;
    border-radius: 25px;
    color: white;
    box-sizing: border-box;
    transition: all 0.3s ease;
    word-wrap: break-word; /* long text */
    max-width: 100%;
}
.TaskItem:hover {
    background-color: #13b8b8;
}
.CheckAndTask {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    flex-wrap: wrap;
}
.TaskItem .taskText {
    font-size: 1.1em;
    font-weight: 700;
    flex-grow: 1;
    color: white;
    word-wrap: break-word; /* Ensure task text wraps to next line */
    max-width: calc(100% - 40px); /* Allow space for the delete icon */
}
.TaskItem .deleteTask {
    font-size: 1.5em;
    cursor: pointer;
    color: white;
    transition: color 0.3s ease;
}
.fa-trash, .fa-check, .fa-circle {
    transition: .5s;
}
.fa-trash:hover, .fa-check:hover, .fa-circle:hover{
    transform: scale(1.3);
}

.TaskItem .hide {
    display: none;
}
.linethrow {
    text-decoration: line-through;
}


.addSection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
}

.addSection h1 {
    font-size: 24px;
    color: #333;
    margin: 0;
}

.addSection button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.addSection button:hover {
    background-color: #d13e30
}
.addSection button:active {
    background-color: #e37166
}


.noteContainer {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.noteItem {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.noteItem textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 800;
    resize: vertical; /* Allow vertical resizing */
    min-height: 100px;
}

.noteItem textarea:focus {
    outline: none;
    border-color: #007bff;
}

.noteItem .fa-trash {
    color: #ff4d4d;
    cursor: pointer;
    font-size: 18px;
    margin-top: 10px;
}

.noteItem .fa-trash:hover {
    color: #cc0000;
}


/* Circular time bar styling */
.timer-container {
    text-align: center;
    color: #0f4c5c;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

.timer-containerh1 {
    margin-bottom: 30px;
}

.timer-container .time-display {
    font-size: 60px;
    font-weight: bold;
    margin-bottom: 20px;
}

.timer-container .controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.timer-container input {
    padding: 5px;
    color: #0f4c5c;
    font-size: 25px;
    font-weight: 900;
    width: 90%;
    margin: 10px auto;
    text-align: center;
}

.timer-container button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    background-color: #e36414;
    color: white;
    border: none;
    border-radius: 5px;
    transition: .3s;
}

.timer-container button:hover {
    background-color: #fd6506;
}
@media (max-width: 650px) {
    .App {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}
@media (max-width: 550px) {
    .App {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    header i {
        font-size: 1em;
        cursor: pointer;
    }
    header .title span:first-child {
        font-size: 1.2em;
    }
    header .title span:last-child {
        font-size: 0.8em;
        font-weight: 400;
        color: #fff;
    }
    .buttonsControl {
        padding: 30px 9% 0px 9%;
    }
    .buttonsControl .controeBtn {
        padding: 12px 12px;
        font-size: 0.7em;
    }

    .mainPageTasks {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 20px;
        gap: 10px;
    }
    .boxOfTask {
        gap: 15px;
        width: 100%;
        padding: 12px;
    }

    .TODO h1 {
        color: var(--secondary-color);
        font-size: 1.6em;
        font-weight: 700;
    }
    
    .TODO .SearchBox {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin: 8px 0;
        position: relative;
    }
    
    .TODO .SearchBox input {
        flex: 1;
        background-color: #fff;
        color: #15616d;
        font-size: 1em;
        font-weight: 600;
    }
    .TODO .SearchBox input::placeholder {
        color: #7d979b;
        font-weight: 700;
    }
    
    .TODO .SearchBox button {
        font-size: 1em;
    }
    
   
}
