/* Reset default styles */ 
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: linear-gradient(60deg, #ffffff, #ffffff);
  background-repeat: no-repeat; /* prevents image repeating */
  background-size: cover;       /* makes it cover entire area */
  color: #272D2D; 
  line-height: 1.6;
}


/* Header */
h1, h2 {
  text-align: center;
  color: #f7cd62;
  margin: 20px 0;
  font-weight: 700;
}

/* Couple Name */
.couplename {
  text-align: center;
  font-size: 24px;
  font-family: 'Times New Roman', Times, serif;
  margin-bottom: 20px;
  background-color: #99e9f600;
  opacity: 0.5;
}

.couplename h2 {
  margin: 0;
  font-size: 25px;
  font-family: 'Times New Roman', Times, serif;
  color: #4dddd8;
  font-weight: 800;
}

/* Header */

    .header {
      padding: 20px 0;
      text-align: center;
      
    }

    .header h1 {
      margin: 0;
      font-size: 20px;
      background-color: #ffffff;
      font-family: 'Times New Roman', Times, serif;
      color: #000000;
      font-weight: 800;
    }

    .header h2 {
      margin: 0;
      font-size: 30px;
      font-family: 'Times New Roman', Times, serif;
      color: #b3b3b3;
      font-weight: 600;
    }


/* Navigation bar */


/* Buttons */
button {
  padding: 6px 12px;
  background: linear-gradient(90deg, #f7cd62, #fde8b2);
  color: #272D2D;          /* dark text on light buttons for elegance */
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(247, 206, 91, 0.5);
}

button.big-btn {
  padding: 10px 20px;
  font-size: 18px;
  border-radius: 16px;
  background: linear-gradient(90deg, #f7cd62, #fde8b2);
}

button.big-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(247, 206, 91, 0.7);
}

/* Back to Home Button */
.back-home-btn {
  display: block;
  margin: 30px auto;          /* center horizontally with spacing */
  text-decoration: none;
  background: linear-gradient(90deg, #edc255, #f7cd62);
  color: #272D2D;
  padding: 12px 28px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.back-home-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 22px rgba(247, 206, 91, 0.4);
}

/* =========================
   TABS
========================= */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tabs button {
  flex: 1;
  padding: 12px 10px;
  border-radius: 14px;
  border: none;
  background: #eaeaea;
  font-size: 15px;
  font-weight: 700;
}

.tabs button.active {
  background: #000;
  color: #fff;
}

/* Card */
.card {
  background: #ffffff;
  border: 2px solid #4dddd8;
  border-radius: 16px;
  padding: 60px 50px;
  max-width: 600px; /* was 400px */
  width: 100%;
  margin: 20px auto;
  text-align: center;
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.05);
  font-family: Arial, sans-serif;
  transition: transform 0.3s ease, box-shadow 1s ease;
}

.input-group {
  display: flex;
  flex-direction: column; /* Stack label and select vertically */
  margin-bottom: 15px;
  font-size: 20px;
}

.input-group label {
  margin-bottom: 5px;
  font-weight: bold;
}

.input-group select {
  padding: 8px 12px;
  border-radius: 5px;
  border: 1px solid #ffed4d;
  font-size: 20px;
  background-color: white;
}


.card h2 {
  font-size: 30px;
  margin-bottom: 20px;
  color: #272D2D;
}

.card p {
  font-size: 28px;
  color: #555555;
  font-weight: 500;
}

.card h1 {
  font-size: 40px;
  margin-bottom: 20px;
  color: #4dddd8;
}

.card button {
  margin-top: 20px;
  position:center;
  padding: 14px 28px;
  font-size: 18px;  
  border-radius: 16px;
  background: linear-gradient(90deg, #f7cd62, #fde8b2);
}
/* */

/* ===== INPUTS AND BUTTONS ===== */
input[type="text"], input[type="file"] {
  padding: 8px;
  margin-right: 5px;
  width: 70%;
  box-sizing: border-box;
}


/* ===== GOALS LIST ===== */
ul {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  margin-bottom: 6px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: grab;
}

ul li.dragging {
  opacity: 0.5;
}





/* */
#visionBoardPreview {
  max-width: 100%;
  max-height: 1000px;   /* adjust as needed */
  width: auto;
  height: auto;
  display: block;
  margin-top: 12px;
  object-fit: contain;
  position: center;
}


/* Inputs */
input[type="text"], input[type="password"], input[type="file"] {
  padding: 20px;
  border: 2px solid #F7CE5B;
  border-radius: 12px;
  width: 100%;
  max-width: 260px;
  margin-bottom: 12px;
  outline: none;
  font-size: 20px;
  color: #272D2D; /* dark text in inputs */
  background-color: #d7fffc; /* soft card-style input */
  transition: border 0.2s, box-shadow 0.2s;
}

input[type="text"], input[type="email"], input[type="file"] {
  padding: 20px;
  border: 2px solid #F7CE5B;
  border-radius: 12px;
  width: 100%;
  max-width: 260px;
  margin-bottom: 12px;
  outline: none;
  font-size: 20px;
  color: #272D2D; /* dark text in inputs */
  background-color: #fffdb7; /* soft card-style input */
  transition: border 0.2s, box-shadow 0.2s;
}

input[type="text"], input[type="date"], input[type="file"] {
  padding: 20px;
  border: 2px solid #F7CE5B;
  border-radius: 12px;
  width: 100%;
  max-width: 260px;
  margin-bottom: 12px;
  outline: none;
  font-size: 20px;
  color: #272D2D; /* dark text in inputs */
  background-color: #fffdb7; /* soft card-style input */
  transition: border 0.2s, box-shadow 0.2s;
}

input[type="number"]{
  padding: 20px;
  border: 2px solid #F7CE5B;
  border-radius: 12px;
  width: 100%;
  max-width: 260px;
  margin-bottom: 12px;
  outline: none;
  font-size: 20px;
  color: #272D2D; /* dark text in inputs */
  background-color: #fffdb7; /* soft card-style input */
  transition: border 0.2s, box-shadow 0.2s;
}

/* ===== Dropdowns ===== */

/* Container for each input group */


/* ===== TODO LIST CARDS ===== */

.list-card{
  background-color: #fff9bd;
  padding: 15px;
  border-radius: 12px;
  margin: 10px auto;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  font-size: 30px;
}

.list-card p {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #272D2D;
}

/* Space items inside each todo row */
.list-card ul li {
  display: flex;
  align-items: center;
  gap: 12px;              /* 👈 main spacing control */
  padding: 6px 0;
}

/* Push delete button to the right */
.list-card ul li span {
  flex: 1;                /* text takes remaining space */
}

/* Delete button spacing & safety */
.list-card ul li button {
  margin-left: 8px;
  cursor: pointer;
}

input:focus {
  border-color: #F7CE5B;
  box-shadow: 0 0 10px rgba(247, 206, 91, 0.5);
}

/* Timeline grid */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto 50px auto;
  padding: 0 10px;
}

timeline.back-home-btn {
  margin-top: 30px;
  color: #272D2D;
} 

/* Footer */
footer {
  text-align: center;
  padding: 18px;
  color: #8A7E72;
  font-size: 13px;
  font-weight: 500;
  margin-top: 50px;
}

/* Verse section */
.verse-text {
  font-size: 1.5em;
  margin: 20px auto;
  color: #CBF3F0;          /* dark text on light card */
  font-style: italic;
  padding: 20px;
  background-color: #8A7E72;
  border-left: 5px solid #F7CE5B;
  border-radius: 12px;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}


    /* Timer card styling */
    #timers {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      padding: 20px;
      gap: 15px;
    }

    .timer-entry {
      background: white;
      padding: 15px 20px;
      border-radius: 10px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.2);
      min-width: 250px;
      text-align: center;
      position: relative;
    }


    .timer-entry strong {
      display: block;
      margin-bottom: 10px;
      font-size: 1.2em;
    }

    /* Modal styling */
    #timerModal {
      display: none;
      position: fixed;
      z-index: 100;
      left: 0; top: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.6);
      justify-content: center;
      align-items: center;
    }

    #timerModalContent {
      background: white;
      padding: 30px;
      border-radius: 12px;
      text-align: center;
      min-width: 300px;
    }

    #timerModalContent input {
      width: 90%;
      padding: 10px;
      margin: 10px 0;
      border-radius: 6px;
      border: 1px solid #ccc;
    }

    #timerModalContent button {
      padding: 10px 20px;
      margin-top: 10px;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-size: 1em;
    }

    #saveTimerBtn {
      background: #007bff;
      color: white;
    }

    #closeModalBtn {
      background: #6c757d;
      color: white;
      margin-left: 10px;
    }


/* ===============================
   REMAINING BUDGET BANNER
   =============================== */

.budget-banner {
  position: sticky;
  top: 0;
  z-index: 1000;

  width: 100%;
  padding: 20px 16px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  font-weight: 600;

  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Label text */
.budget-banner span {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Big remaining amount */
#remainingAmount {
  font-size: 2.5rem;
  font-weight: 800;
}

/* ===============================
   COLOR STATES
   =============================== */

.budget-good {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: #0f172a;
}

.budget-warning {
  background: linear-gradient(135deg, #facc15, #fde047);
  color: #422006;
}

.budget-danger {
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: #450a0a;
}





/* ---------------------------------------------------- */
/* 📱 Responsive (Mobile Friendly) */
/* ---------------------------------------------------- */

@media (max-width: 700px) {
  nav a {
    margin: 8px 10px;
    font-size: 14px;
  }

  .card {
    width: 100%;
    max-width: 380px;
    border-radius: 20px;
  }

  h1, h2 {
    font-size: 30px;
  }

  .timeline-grid {
    grid-template-columns: 1fr 1fr;  /* 2 columns on small screens */
    gap: 10px;
  }

  button {
    width: 50%;           /* half of container width */
    max-width: 300px;     /* optional, won’t get too wide on desktop */
    margin: 10px auto;    /* center horizontally with some spacing */
    display: block;       /* needed for centering */
  }

  .big-btn {
    width: 70%;  
    max-width: 300px;     /* optional, won’t get too wide on desktop */
    margin: 10px auto;    /* center horizontally with some spacing */
    display: block;       /* needed for centering */         /* slightly wider for big buttons */
  }


  .photo-card {
    max-width: 100%;
  }
}


/*Health screen */

/* style.css */
.toggle { display:flex; gap:10px; margin-bottom:20px; }
.grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }


