/* Use global variables where possible */
:root {
    /* General */
    --font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; 
    --font-weight: lighter;
    --font-size: 1rem;
    --font-color: 070708;
    --box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    --border-radius: 4px;
    --border: 1px solid #b8b8b8;
    --body-background-color:  rgb(255, 255, 255);
 }

/*###################################################################################################################################################################################
            BODY, HEADER, NAVIGATION STYLING
####################################################################################################################################################################################*/

body {
    background: var(--body-background-color);
    z-index: 1;
    margin: 0;
    font-size: var(--font-size);
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    color: var(--font-color);
    height: 100%;
}

section {
    position: relative;
}

.header {
    background: var(--body-background-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    width: 100%;
    max-width: 1499px;
    z-index: 2;
}

.craft-logo{
    background-color: #707070;
    color: white;
    font-size: 2rem;
}

.intent-logo{
    color: #707070;
    font-size: 2rem;
}

.one-thing {
    font-size: small;
    color: solid black;
    justify-content: center;
    justify-self: center;
    align-self: center;
    margin-top: .25rem;
    padding-right: 45px;
    padding-left: 45px;
    padding-bottom: 5px;
}

.navigation {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 10px;
    margin-top: 20px;
}

.nav-label {
    cursor: pointer;
    margin-right: 30px;
}

.nav-label:hover {
    color: #4898b8;
    transform: scale(4);
}

/* Hamburger menu container */
.hamburger-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.hamburger-icon,
.save-button {
    border: none;
    background-color: var(--body-background-color);
    font-size: 15px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
}

.hamburger-icon:hover,
.save-button:hover {
    background-color: #f2f2f2;
}

/* Settings Page*/
.settings-page {
    display: none;
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 50vw;
    height: 50vh;
    margin: auto;
    padding: 25px;
    overflow: auto;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.dropdown-menu ul li a:hover {
    background-color: #f2f2f2;
}

.user-settings {
    margin-left: 15px;
}

/*####################################################################################################################################################################################
            SECTION AND CONTENT STYLING
####################################################################################################################################################################################*/

.content-container {
    display: flex;
    flex-direction: column;
    text-align: left;
    overflow-y: auto;
    height: 100%;
    width: auto;
    max-width: 2400px;
    min-height: 100vh;
    margin: 10px auto 10px auto;
    padding: 0px 45px;
    background-color: var(--body-background-color);
    box-shadow: 
    10px 10px 20px #babecc, /* Bottom-right shadow */
    -10px -10px 20px #ffffff, /* Top-left shadow */
    -10px 10px 20px #babecc, /* Bottom-left shadow */
    10px -10px 20px #ffffff; /* Top-right shadow */
    border-radius: 5px;
}

input[name="title"] {
    display: none;
}

.projects,
.todos,
.notes {
    margin-bottom: 10px;
    width: 100%;
}

.todos-button,
.projects-button,
.notes-button {
    font-size: large;
    font-weight: 300;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

#todos:checked ~ .todos-button,
#projects:checked ~ .projects-button,
#notes:checked ~ .notes-button {
    font-weight: 400;
}

.add-project-button,
.add-notes-button,
.projects-container,
.todos-container,
.notes-container,
.todoList {
    display: none;
}

#todos:checked ~.todos-container,
#projects:checked ~.projects-container,
#notes:checked ~ .notes-container {
    display: block;
    padding: 10px 15px 20px 15px;
    min-height: 100px;
    width: 95%;
}

#projects:checked ~ .projects-container .add-project-button,
#notes:checked ~ .notes-container .add-notes-button {
    display: inline-block;
}

.todos-container,
.projects-container,
.notes-container {
    position: relative;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    margin: 20px auto;
    background-color: white;
    overflow: auto; /* To handle overflow of content */
}


/* BUTTONS */
.logout-button,
.add-project-button,
.add-notes-button,
.delete-notes-button,
.delete-project-button {
    align-self: center;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #b8b8b8;
    box-shadow: 
    3px 3px 3px #babecc, /* Bottom-right shadow */
    -3px -3px 3px #ffffff, /* Top-left shadow */
    -3px 3px 3px #babecc, /* Bottom-left shadow */
    3px -3px 3px #ffffff; /* Top-right shadow */
    cursor: pointer;
    font-size: medium;
    height: 25px;
    width: 25px;
    z-index: 5;
}

.logout-button {
    padding: 10px;
}

.add-project-button:hover,
.add-notes-button:hover,
.delete-notes-button:hover,
.delete-project-button:hover {
    background-color: #919191;
}

.maximize-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    z-index: 1;
}

.maximize-btn:hover {
    color: #8d0b0b;
    scale: 1.2;
}

.fullscreen {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    height:90vh;
    z-index: 100;
    background-color: var(--body-background-color);
    border: var(--border);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-left: auto;
    margin-right: auto;
}

/*##################################################################################################################################################################################
           Todo Styles
####################################################################################################################################################################################*/

.todoItem {
    padding-left: 10px;
    position: relative;
    line-height: 1.6;
}

.todos-list li {
    position: relative;
    list-style: none;
    padding-left: 1rem;
}

.todos-list li.todoItem::before {
    position: absolute;
    left: 0;
    top: 0;
    display: inline-block;
    content: "-";
    margin-right: 10px;
    color: rgb(102, 102, 102);
    font-weight: 700;
    cursor: grab;
}

.todoItem:focus {
    outline: none;
    border: none;
}

.indent-1 {
    padding-left: 30px;
}

.hide-button {
    letter-spacing: 1.5px;
    cursor: pointer;
    border-bottom: var(--border);
    border-top: var(--border);
    text-align: center;
    background-color: #70707027;
    box-shadow: var(--box-shadow);
}

.hidden-todo {
    display: none;
}

/*##################################################################################################################################################################################
        Project & Notes Styles
####################################################################################################################################################################################*/

.projects-list,
.notes-list {
    display: flex;
    flex-direction: column;
    justify-items: start;
    margin-bottom: 15px;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
}

.project-item,
.note-item {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 10px 15px;
    border-bottom: 1px solid #e1e1e1;
}

.project-title-container,
.notes-title-container {
    display: flex;
    flex-direction: row;
    align-items: left;
}

.project-title,
.note-title {
    margin-right: 20px;
    min-width: 100px;
    font-weight: 600;
}

/* Collapsible projects */
.project-toggle-arrow,
.notes-toggle-arrow {
  cursor: pointer;
  user-select: none;
  margin-right: 8px;
  transition: transform 0.2s ease;
}

.project-item.collapsed .project-toggle-arrow,
.note-item.collapsed .notes-toggle-arrow {
  transform: rotate(0deg);  /* arrow points right when collapsed */
}

.project-item.collapsed .project-status,
.note-item.collapsed .note-status {
  display: none;              /* hide status when collapsed */
}

.project-status,
.note-status {
    position: relative;
    margin: 10px 50px 10px 20px;
    padding: 5px;
    border-radius: 5px;
    pointer-events: auto;
}

.project-item-menu,
.notes-item-menu {
    position: absolute;
    top: 10px;
    right: 45px;
    cursor: pointer;
    z-index: 1;
}

.project-item-menu-content,
.notes-item-menu-content {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-items: center;
    width: auto;
    position: absolute;
    top: 20px;
    right: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0;
}

.project-item-menu-content ul li,
.notes-item-menu-content ul li {
    padding: 10px;
}

.project-item-menu-content ul li a:hover,
.notes-item-menu-content ul li a:hover {
    background-color: #f2f2f2;
}

.delete-project-button,
.delete-notes-button {
    cursor: pointer;
    margin: 10px;
}

/*##################################################################################################################################################################################
            Drag & Drop Styles
####################################################################################################################################################################################*/

.todoItem.dragging, 
.project-item.dragging, 
.note-item.dragging {
    opacity: 1;
    background-color: #396181;
}
/* Drag & Drop Styles */
.todoItem.drag-over-top,
.project-item.drag-over-top,
.note-item.drag-over-top,
.hidden-todo.drag-over-top {
    border-top: 3px solid #1e40af9d; /* blue line on top */
}

.todoItem.drag-over-bottom,
.project-item.drag-over-bottom,
.note-item.drag-over-bottom,
.hidden-todo.drag-over-bottom {
    border-bottom: 3px solid #1e40af9d; /* blue line on bottom */
}
/*##################################################################################################################################################################################
            Home Page Styles
####################################################################################################################################################################################*/

li {
    list-style: none;  
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    color: black;
    text-decoration: none;
}

.emphasis {
    font-weight: 600;
}

.submit {
    margin-top: 10px;
    font-size: medium;
}

.entire-content-border {
    max-width: 1200px;
    margin-top: 0px;
    margin-left: auto;
    margin-right: auto;
    padding: 0px 45px;
    letter-spacing: 1px;
    line-height: 1.75;
}

.home-text-container {
    max-width: 900px;
    margin-top: 25px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 1px;
    line-height: 1.75;
}
.prompt {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #000, #555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* CTA button */
.cta-btn {
    display: inline-block;
    text-align: center;
    margin: 1rem, auto;
    padding: 0.75rem 1.5rem;
    background: #1e40af; /* deep blue */
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s;
}
.cta-btn:hover {
    background: #1e3a8a;
}
.trial-note {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #555;
}
/* Features */
.features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.features li {
    margin-bottom: 1.2rem;
    padding-left: 1.6rem;
    position: relative;
}

.features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-size: 1.1rem;
    color: #1e40af; /* deep blue */
    font-weight: bold;
    }

/* Video placeholder */
.video-box {
    background: #e5e7eb; /* light gray */
    padding: 3rem;
    text-align: center;
    color: #444;
    margin-bottom: 2rem;
}

.sequence {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.5rem 0;
}

.step {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.arrow {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    color: #666;
}

.form-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    margin: 0 auto;
}

.form-box label {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.form-box input[type="text"],
.form-box input[type="password"] {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

#sync-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,.7);
    color: #fff;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 2000;
}
#sync-indicator[hidden] { display: none; }


/*##################################################################################################################################################################################
            Moblie
####################################################################################################################################################################################*/

@media (max-width: 555px) {
    body {
        font-size: small;
    }

    .entire-content-border {
        padding: 0px;

    }

    .content-container {
        padding: 0px 3px;
    }

    .one-thing {
        text-align: center;
        font-size: medium;
    }
 
    .maximize-btn {
        display: none;
    }
}