.app-frame {
    width: 90%;
    max-width: 1100px;
    margin: 40px auto;

    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(18px);

    padding: 40px;
    border-radius: 28px;

    box-shadow: 
        0 12px 28px rgba(0,0,0,0.10),
        inset 0 0 0 1px rgba(255,255,255,0.6);
}

/* INTERNAL LAYOUT AREA */
#tools-area {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
body {
    margin: 0;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f7;
    color: #111;
    margin-left: 180px;
}


h1, h3 {
    text-align: center;
    font-weight: 600;
    margin-bottom: 30px;
}

.main {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    margin: 20px auto;
    width: 90%;
    max-width: 900px;
    box-shadow: 0px 4px 18px rgba(0,0,0,0.08);
    text-align: center;
}


button {
    
    border: none;
    background: #e5e5ea;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #d1d1d6;
}

/* SPECIFIC BUTTON */
#newNote {
    display: block;
    margin: 30px auto;
}


#timerDisplay {
    font-size: 48px;
    font-weight: 600;
    text-align: center;
    margin: 15px 0;
}

#timerControls {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.unit {
    text-align: center;
    font-size: 18px;
}

.arrow {
    font-size: 22px;
    cursor: pointer;
    user-select: none;
}


#board {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
    min-height: 400px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* STICKY NOTE BOX */
.note {
    width: 250px;
    height: 250px;
    background: #fff9b1;
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    cursor: grab;
    position: relative;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

.note:active {
    cursor: grabbing;
}

/* DRAG BAR */
.sticky-bar {
    height: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    border-radius: 15px 15px 0 0;
    background: rgba(0,0,0,0.05);
    cursor: grab;
}


.sticky-bar button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
}


.note textarea {
    flex: 1;
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    font-size: 16px;
    background: transparent;
    padding: 10px;
    border-radius: 0 0 20px 20px;
    font-family: inherit;
}


.color-btn {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    border: 1px solid #ccc;
    cursor: pointer;
}


.color-yellow { background: #fff9b1; }
.color-blue   { background: #d7eaff; }
.color-pink   { background: #ffd7e8; }
.color-green  { background: #dfffd9; }
.color-orange { background: #ffe5b4; }


@media (max-width: 1000px) {
    .note {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 600px) {
    .note {
        width: 150px;
        height: 150px;
    }
}


#sideNav {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 160px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(14px);
    border-right: 1px solid rgba(0,0,0,0.05);

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 40px;
    gap: 20px;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#sideNav a {
    text-decoration: none;
    color: #007aff;
    font-size: 1rem;
    padding: 10px 20px;
    width: 100%;
    transition: 0.2s;
}

#sideNav a:hover {
    background: rgba(0,0,0,0.05);
    color: #0051bd;
}

/* -------------------------------
   APPLE FLOATING TO-DO LIST
--------------------------------*/
.todo-section {
    position: relative;
    margin: 40px auto 0 auto;
    width: 340px;

    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(14px);

    padding: 20px;
    border-radius: 22px;

    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* HEADER */
.todo-section h2 {
    text-align: center;
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 18px;
}


.todo-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}


.todo-input {
    flex: 1;                          
    padding: 10px 14px;
    background: #f2f2f7;
    border: 1px solid #d1d1d6;
    border-radius: 14px;
    font-size: 15px;
}

.todo-input:focus {
    outline: 2px solid #007aff;
    background: white;
}


.todo-add-btn {
    padding: 10px 14px;
    background: #007aff;
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 15px;
    transition: 0.2s;
}

.todo-add-btn:hover {
    background: #005fcc;
}


.todo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.todo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 14px;

    background: white;
    border-radius: 16px;

    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Checkbox */
.todo-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid #8e8e93;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 12px;
}

.todo-checkbox.checked {
    background: #007aff;
    border-color: #007aff;
}


.todo-item.completed {
    text-decoration: line-through;
    opacity: 0.45;
}

.todo-delete {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #c30000;
    padding: 4px;
}

.todo-delete:hover {
    color: #ff3b30;
}
