/* ================================
   BASE VARIABLES – THEME COLORS
   ================================ */
:root {
  --accent: #6c4ed2;
  /* base purple */
  --accent-2: #8b6cff;
  /* secondary */
  --bg: #f7f8fb;
  --card: #ffffff;
  --muted: #7b7f91;
  --text: #1e1e2f;
  --border: #eaedf3;
  --radius: 12px;
  --shadow: 0 8px 26px rgba(36, 37, 62, 0.08);
  --soft: rgba(108, 78, 210, 0.12);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --glass: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3));
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}


/* ================================
   GLOBAL RESET
   ================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  display:flex;
  line-height: 1.6;
  transition: background 0.4s, color 0.4s;
}

/* ================================
   HEADER STYLING
   ================================ */
.header {
  width: 30%;
  padding: 1rem 2rem;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  position: sticky;
  top: 0;
}

.header h1 {
  color: white;
  font-size: 1.9rem;  
}

.header img {
  height: 40px;
}

.flex {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 5px;
}

.form-group {
  flex: 1;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent);
}

.brand svg {
  fill: var(--accent);
  transition: fill 0.3s;
}

/* Toggle */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}


/* ================================
   MAIN CONTAINER
   ================================ */
.container {
  width: 70%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 30px;
}

/* ================================
   DATA BOX
   ================================ */
.data-mine {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgb(0 0 0 / 4%);
  transition: background 0.3s, box-shadow 0.3s;
  flex-direction: column;
  display: flex;
  gap: 1.2rem;
}

.data-mine:hover {
  box-shadow: 0 4px 14px rgb(0 0 0 / 6%);
}


label {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  display: block;
}

input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.select{
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

.pill {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ================================
   CARD STYLING
   ================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  flex: 1;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgb(0 0 0 / 3%);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgb(0 0 0 / 6%);
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  text-align: center;
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px dashed var(--border);
  padding-bottom: 0.5rem;
}

/* ================================
   RESULTS + TOTALS
   ================================ */
.results-list {
  list-style: none;
  margin-top: 0.75rem;
  color: var(--muted);
  padding-left: 0.25rem;
}

.total {
  text-align: center;
  margin-top: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.subtle {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ================================
   ROWS / BUTTONS / ACTIONS
   ================================ */
.row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.row-mine {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.row-mine2 {
  display: flex;
  gap: 0.5rem;
}

.col-mine {
  flex: 1;
}

.col-mine button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.col-mine button:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
}

/* ================================
   SUBMIT CARD
   ================================ */
.card-mine {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 10px rgb(0 0 0 / 3%);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#submitBtn {
  background-color: rgb(211, 211, 211);
  border: none;
  color: white;
  border-radius: 5px;
  cursor: not-allowed;
  display: block;
  margin: auto;
  padding: .9rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  transition: background .3s, transform .2s
}

#submitBtn:enabled {
  background: var(--accent);
  cursor: pointer;
  color: #fff;
}

#submitBtn:enabled:hover {
  background: #b66b28;
  transform: translateY(-2px);
}

.result-row {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  padding: .5rem .2rem
}

.result-row span:first-child {
  flex: 1
}

.result-row span:nth-child(2) {
  margin-right: 1.5rem
}


input,
select {
  padding: .7rem .9rem;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  outline: 0;
  transition: border-color .2s;
  color: var(--text)
}

.error {
  color: #900;
}

.warning {
  color: #c49405;
}

.ok {
  color: #13aa36;
}

/* Notification Styling */
#suggestedTipsNotice {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 9999;
  opacity: 1;
  transition: opacity 1s ease;
}

/* Fade-out animation */
#suggestedTipsNotice.fade-out {
  opacity: 0;
}


/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
    margin: 1rem auto;
    width: 95%;
  }
  .flex{
      flex-direction: column;
  }

  .row {
    flex-direction: column;
  }

  .card {
    padding: 1.2rem;
  }

  .brand {
    font-size: 1.1rem;
  }

  body {
    flex-direction: column;
  }

  .header{
    height: 150px;
    width: 100%;
    position: relative;
  }
}