:root {
    --primary-color: #FF4500; /* Vibrant Orange */
    --secondary-color: #1E1E1E; /* Dark Gray */
    --background-color: #FFFFFF; /* White */
    --accent-color: #FF5722; /* Slightly Darker Orange */
    --font-primary: 'Oswald', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --header-height: 70px; /* Define header height for consistency */
    --overlay-color: rgba(30, 30, 30, 0.6); /* Dark overlay for hero section */
    --card-background: rgba(255, 255, 255, 0.85); /* Semi-transparent white for cards */
    --card-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --hero-padding: 40px 20px;
    --max-content-width: 1000px;
    --offset-left: 300px;
    
  }

  /* === Reset & Global Styles === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }


body {
    font-family: var(--font-secondary);
    background-color: var(--background-color);
    background: url("../img/background.15f5efb01635.webp") center/cover no-repeat fixed;
    color: var(--secondary-color);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
  }
  @supports (background: url("../img/background.2f0a3da6d4f3.avif")) {
    .body {
        background: url("../img/background.2f0a3da6d4f3.avif") center/cover no-repeat fixed;
    }
  }
  
  /* === Header === */
  header {
    width: 100%;
    height: var(--header-height);
    padding: 0 40px;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  

/* Page Title Styles */
.logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
  }

  nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
  }
  
  nav ul li a,
  a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s;
  }
  
  nav ul li a:hover,
  nav ul li a.active {
    color: var(--accent-color);
  }
/* Main Content Styles */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* justify-content: flex-start; */
    justify-content: center;
    min-height: 100vh;
    box-sizing: border-box;
    padding-top: 100px;
    background: var(--overlay-color);
}

h1 {
    font-family: var(--font-primary);
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    color: white;
  }
h3 {
    color: white;
}

.history-container h1 {
    text-align: center;
}

.vacarion-days-lasting {
    padding-bottom: 15px;
    text-align: center;
}
  
#remaining-days
{
  padding: 10px 15px;
  color: white;
  background-color: var(--primary-color);
  
}

.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    max-width: 450px;

}
#stay-focused {
    padding-top: 10px;
    color: white;
    width: 400px;
    height: 30vh;
}

/* Card Container Styles */
.card-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

#set-limit {
    margin-bottom: 25px;
}
/* Task Form Styles */
.card-thin,
#password-reset-confirm-form,
#password-change-form,
#form-and-list-container,
#reset-pass-form,
#login-form
{
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    box-sizing: border-box;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    /* width: 100%; */
    width: 450px;
    /* min-height: 386.5px; */
}

#task-form,
#task-list  {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* height: 386.5px; */
}

#password-change-form input,
#password-reset-confirm-form input,
#reset-pass-form input,
#login-form input,
#task-form input[type="text"],
#task-list input[type="text"] {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #A1887F;
    border-radius: 8px;
    font-size: 16px;
    color: #4E342E;
    box-sizing: border-box;
    margin-bottom: 30px;
}
#password-change-form button,
#password-reset-confirm-form button,
#reset-pass-form button,
#login-form button,
#task-form button,
#task-list button {
    background-color: var(--primary-color);
    width: 100%;
    padding: 15px 30px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 5px;
    color: #FFFFFF;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    text-decoration: none;
}
#password-change-form button:hover,
#password-reset-confirm-form button:hover,
#reset-pass-form button:hover,
#login-form button:hover,
#task-form button:hover,
#task-list button:hover {
    background-color: var(--primary-color);
}

.task-item {
    display: flex;
    align-items: center;
    padding: 15px;
    /* border-bottom: 1px solid #D7CCC8; */
    box-sizing: border-box;
    margin-bottom: 30px;
}

.task-item:last-child {
    border-bottom: none;
}

.task-item input[type="checkbox"] {
    transform: scale(1.5);
    margin-right: 15px;
    cursor: pointer;
}

.task-item label {
    font-size: 18px;
    color: #4E342E;
    cursor: pointer;
    flex: 1;
}

.task-item.completed {
    background-color: #E0F2F1;
}

.task-item.completed label {
    text-decoration: line-through;
    color: #4E342E;
}


/* Messages container */
#messages-container {
    position: fixed;
    /* top: 20px; */
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    z-index: 1000;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Individual message styles */
.message {
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transition: opacity 1s ease-out;
}

/* Message types */
.message-success {
    background-color: white;
    color: #239500;
    border: 1px solid #239500;
}

.message-error {
    background-color: white;
    color: #FF4500;
    border: 1px solid #FF4500;
}

.message-info {
    background-color: white;
    color: #00d9ff;
    border: 1px solid #00d9ff;
}

/* Fade-out animation */
.fade-out {
    opacity: 0;
}



/* SMART Reminder Styles */
.smart-reminder {
    margin-top: 15px;
    font-size: 14px;
    color: #4E342E;
    text-align: center;
}

.smart-reminder strong {
    color: #6D4C41;
}

/* Celebration Animation Styles */
#celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

#celebration h2 {
    color: #FFFFFF;
    font-size: 48px;
    margin-bottom: 20px;
    animation: pop-in 0.5s ease-out forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

#celebration .confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #fff;
    opacity: 0;
    animation: confetti 2s linear forwards;
}
.feedback-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 15px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 14px;
    z-index: 1000;
    transition: background-color 0.3s ease;
  }
  
  .feedback-button:hover {
    background-color: var(--accent-color);
  }
  
  .feedback-modal {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    padding: 15px;
    width: 300px;
    z-index: 1001;
  }
  
  .feedback-modal textarea {
    width: 100%;
    height: 80px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: none;
  }
  
  .feedback-modal button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
  }
  
  .feedback-modal button:hover {
    background-color: var(--accent-color);
  }
  
  .feedback-modal .close-button {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #888;
    transition: color 0.3s ease;
  }
  
  .feedback-modal .close-button:hover {
    color: #000;
  }
  
  .feedback-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }
@keyframes pop-in {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

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

@keyframes confetti {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translateY(600px) rotate(360deg);
    }
}

/* Responsive Design */

@media (max-width: 800px) {
    .kiwi-logo {
        display: none;
    }

    .content {
        padding-top: 80px;
    }
    #task-form,
    #task-list {
        width: 100%;
    }
    .back-button {
        display: none;
    }
    .change-pass-card {
        width: 100% !important;
        max-width: 700px;
    }
}
@media (max-width: 600px) {
    #username {
        display: none;
    }
    #messages-container,
    #task-container,
    #form-and-list-container,
    #login-form,
    #settings-form,
    .button {
        width: 100% !important;
        max-width: 450px;
    }
    .history-container,
    .history-column,
    .history-card {
        width: 100% !important;
        max-width: 500px;
        min-width: 350px;
    }
    .content {
        width: 100%;
    }
    #stay-focused {
        width: 90%;
        max-width: 400px;
    }
}

.logout-button {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #FFFFFF;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
}

.back-button {
    position: absolute;
    top: 140px;
    left: 50%;
    transform: translate(calc(-50% - var(--offset-left)), -50%);
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #FFFFFF;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
}


#username {
    position: absolute;
    top: 25px;
    right: 100px;
    z-index: 1000;
}
/* Burger Navbar Styles */
.burger-navbar {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.burger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.burger-icon div {
    background-color: #333;
    height: 4px;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.burger-menu {
    display: none;
    position: absolute;
    top: 50px;
    right: -20px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* border-radius: 5px; */
    overflow: hidden;
}

.burger-menu a,
.burger-menu button {
    display: block;
    padding: 10px 20px;
    text-align: left;
    text-decoration: none;
    color: #333;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
}

.burger-menu a:hover,
.burger-menu button:hover {
    background-color: #f5f5f5;
}

.show-menu {
    display: block;
}
#vacation-form,
#settings-form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    width: 450px;
    margin: 0 auto;
}
.future-days-list {
    padding: 0 45px;
}

#settings-form input,
#settings-form select {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #A1887F;
    border-radius: 8px;
    font-size: 16px;
    color: #4E342E;
    box-sizing: border-box;
}
.save-vacation-button,
#settings-form button {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-sizing: border-box;
}
.save-vacation-button:hover, 
#settings-form button:hover {
    background-color: var(--primary-color);
}
.info-icon {
    margin-left: 5px;
    color: var(--secondary-color);
    cursor: pointer;
    position: relative;
    font-size: 14px;
  }
  
  .info-icon:hover .info-text {
    display: block;
  }
  
  .info-text {
    display: none;
    position: absolute;
    top: 20px;
    left: 0;
    width: 260px;
    background-color: #ffffff;
    color: var(--secondary-color);
    font-size: 15px;
    padding: 18px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
    white-space: normal;
    font-weight: 500;
  }

.timezones-link {
    float: right;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.4);
}
.timezones-link:hover {
    font-size: 14px;
    color: var(--primary-color);
}

.future-days-list {
    padding: 0;
}

.future-days-list table {
    width: 100%;
    border-collapse: collapse;
}
.future-days-list th, .future-days-list td {
    /* border: 1px solid #ccc; */
    padding: 8px;
    text-align: center;
}

.future-days-list th {
    background-color: #f4f4f4;
}


/* History Column */
.history-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 500px;
}

/* History Card */
.history-card {
    /* border: 1px solid #A1887F; */
    border-radius: 8px;
    padding: 20px;
    background-color: #FAFAFA;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.history-card h4 {
    font-size: 20px;
    color: #4E342E;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.status {
    font-size: 16px;
    color: #6D4C41;
}

.vacation-label {
    font-size: 18px;
    color: #353536;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
}

.goals-list {
    list-style-type: none;
    padding-left: 0;
    margin: 10px 0;
}

.goals-list li {
    margin-bottom: 5px;
    font-size: 16px;
    color: #4E342E;
    display: flex;
    justify-content: space-between;
}

.goal-status {
    font-weight: bold;
    font-size: 18px;
}

.goal-status::before {
    margin-right: 5px;
}

.goal-status span {
    color: #4E342E;
}

.future-placeholder {
    font-size: 16px;
    color: #A1887F;
    font-style: italic;
    text-align: center;
    margin-top: 10px;
}

.goal-status {
    font-weight: bold;
    font-size: 18px;
    margin-left: 10px;
}

.goal-status.success {
    color: green;
}

.goal-status.failure {
    color: red;
}

.day-status {
    font-weight: bold;
    font-size: 16px;
}

.day-status.achieved {
    color: green;
}

.day-status.not-achieved {
    color: red;
}

.history-day {
    margin-top: 10px;
}

.free-day {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 350px;
    text-align: center;
}

.change-pass-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 700px;
    text-align: left;
    > form > ul {
        color: grey;
        font-size: 12px;
        margin-left: 20px;
    }
    > form > button {
        padding: 20px;
        background-color: var(--primary-color);
        width: fit-content;
        padding: 15px 30px;
        border: none;
        border-radius: 5px;
        color: #FFFFFF;
        font-size: 18px;
        cursor: pointer;
        transition: background-color 0.3s ease;
        box-sizing: border-box;
        text-decoration: none;
    }
}
.button {
    margin-top: 40px;
    padding: 20px;
    background-color: var(--primary-color);
    width: 450px;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    text-decoration: none;
    text-align: center;

}
.request-new-reset-link,
.back-to-login,
.forgot-password {
    padding-top: 10px;
    text-align: center;
    margin-bottom: -16px;
}