/* Main Stylesheet for Task Unlock
   Move all style rules from index.html here. */

/* Banner */
.banner {
  background: linear-gradient(90deg, #5a7cff 0%, #bca7ff 100%);
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.08rem;
  font-weight: 500;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 2px 12px rgba(90,124,255,0.10);
  position: relative;
  z-index: 10;
}
.banner a { color: #fff; text-decoration: underline; }
#dismiss-banner {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  margin-left: 1rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
#dismiss-banner:hover { opacity: 1; }

/* FAB (Floating Action Button) */
.fab, .fab-toggle {
  position: fixed;
  bottom: 2.2rem;
  right: 2.2rem;
  background: linear-gradient(90deg, #5a7cff 0%, #bca7ff 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 2rem;
  box-shadow: 0 6px 24px rgba(90,124,255,0.16);
  cursor: pointer;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.2s;
}
.fab-toggle {
  right: 5.5rem;
  font-size: 1.5rem;
  background: #222;
  color: #ffe;
}
.fab:hover, .fab-toggle:hover {
  background: linear-gradient(90deg, #7e8fff 0%, #bca7ff 100%);
}

/* Modal */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(40,40,60,0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal-content {
  background: #fff;
  color: #222;
  border-radius: 16px;
  padding: 2rem 2rem 1.5rem 2rem;
  box-shadow: 0 8px 32px rgba(90,124,255,0.18);
  min-width: 320px;
  max-width: 90vw;
}
.modal-content input[type="text"] {
  margin-bottom: 1rem;
}
.modal-content button {
  width: auto;
  margin: 0 0.5rem 0 0;
  display: inline-block;
}

/* Quote box */
.quote-box {
  margin: 1.5rem auto;
  background: #f6f8fc;
  color: #5a7cff;
  font-size: 1.13rem;
  font-style: italic;
  padding: 1rem 2rem;
  border-radius: 12px;
  max-width: 500px;
  box-shadow: 0 2px 8px rgba(90,124,255,0.06);
  text-align: center;
}

/* Export button */
.export-btn {
  background: linear-gradient(90deg, #bca7ff 0%, #5a7cff 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.3rem;
  margin: 1.5rem auto 0 auto;
  display: block;
  font-size: 1.04rem;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(90,124,255,0.08);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.export-btn:hover {
  background: linear-gradient(90deg, #7e8fff 0%, #bca7ff 100%);
}

/* Dark mode */
body.dark-mode {
  background: #181a20;
  color: #e2e3f7;
}
body.dark-mode .hero {
  background: linear-gradient(90deg, #23264a 0%, #6b5ca6 100%);
}
body.dark-mode .banner {
  background: linear-gradient(90deg, #23264a 0%, #6b5ca6 100%);
  color: #fff;
}
body.dark-mode .container, body.dark-mode .modal-content {
  background: #23264a;
  color: #e2e3f7;
}
body.dark-mode .quote-box {
  background: #23264a;
  color: #bca7ff;
}
body.dark-mode .export-btn, body.dark-mode .fab, body.dark-mode .fab-toggle {
  background: linear-gradient(90deg, #6b5ca6 0%, #23264a 100%);
  color: #fff;
}
body.dark-mode input, body.dark-mode select {
  background: #23264a;
  color: #e2e3f7;
  border-color: #5a7cff;
}
body.dark-mode button, body.dark-mode .tab-button {
  background: linear-gradient(90deg, #23264a 0%, #6b5ca6 100%);
  color: #fff;
}
body.dark-mode .tab-button.active {
  background: #5a7cff;
  color: #fff;
}


body {
  font-family: 'Inter', Arial, sans-serif;
  background: linear-gradient(135deg, #f6f8fc 60%, #e9eafc 100%);
  color: #222;
  margin: 0;
  padding: 0;
  line-height: 1.7;
  min-height: 100vh;
  transition: background 0.3s;
}
header {
  background: transparent;
  color: #333;
  padding: 0 0 1rem 0;
  text-align: center;
  position: relative;
  border-bottom: 2px solid #e0e0e0;
}
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2.5rem 1rem 1rem 1rem;
  background: linear-gradient(90deg, #5a7cff 0%, #bca7ff 100%);
  border-radius: 0 0 32px 32px;
  box-shadow: 0 6px 24px rgba(90,124,255,0.08);
  animation: fadeInDown 0.8s cubic-bezier(.77,0,.18,1) both;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(30,30,60,0.22) 0%, rgba(60,60,80,0.12) 100%);
  border-radius: 0 0 32px 32px;
  z-index: 1;
  pointer-events: none;
}
.hero > * {
  position: relative;
  z-index: 2;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-text h1 {
  font-size: 2.2rem;
  color: #fff;
  margin: 0;
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(40,40,60,0.25), 0 1px 0 #222;
}
.hero-text .subtitle {
  color: #e3e0ff;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(40,40,60,0.15);
}
header nav {
  margin-top: 0.5rem;
}
header nav a {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
  font-size: 1rem;
}
header nav a:hover {
  text-decoration: underline;
}
.logo {
  max-width: 90px;
  height: auto;
  margin-right: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(90,124,255,0.10);
}
main {
  padding: 2rem 1rem 1rem 1rem;
  min-height: calc(100vh - 200px);
  background: none;
}
.container {
  max-width: 1100px;
  margin: -3rem auto 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
  width: 100%;
}
form.card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
  box-shadow: 0 4px 24px rgba(76,175,80,0.10);
  border-radius: 16px;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #e0e0e0;
}
input[type="text"], select {
  font-size: 1.07rem;
  padding: 0.7rem;
  border: 1.5px solid #bfc8e6;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.5rem;
  background: #f6f8fc;
  transition: border-color 0.2s;
}
input[type="text"]:focus, select:focus {
  border-color: #5a7cff;
  outline: none;
}
label {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: #5a7cff;
}
.checkbox-label {
  font-weight: 400;
  color: #333;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
button {
  background: linear-gradient(90deg, #5a7cff 0%, #bca7ff 100%);
  color: #fff;
  border: none;
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.12rem;
  width: 100%;
  max-width: 220px;
  margin: 1.2rem auto 0 auto;
  display: block;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(90,124,255,0.10);
  transition: background 0.2s, box-shadow 0.2s;
}
button:hover {
  background: linear-gradient(90deg, #7e8fff 0%, #bca7ff 100%);
  box-shadow: 0 4px 24px rgba(90,124,255,0.18);
}

.tabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
  background: #e9eafc;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(76,175,80,0.05);
  padding: 0.5rem 0.5rem 0.5rem 0.5rem;
}
.tab-button {
  background: #f4f4f9;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  flex: 1;
  min-width: 120px;
  font-size: 1.05rem;
  font-family: 'Quicksand', Arial, sans-serif;
  font-weight: 600;
  color: #5a7cff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, color 0.2s;
}
.tab-button .tab-icon {
  font-size: 1.2em;
}
.tab-button.active {
  background: linear-gradient(90deg, #5a7cff 0%, #bca7ff 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(90,124,255,0.10);
}
.tab-button.active {
  background: #5a7cff;
  color: white;
}
table.card {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(90,124,255,0.10);
  border: 1px solid #d1d5ee;
  overflow: hidden;
  animation: fadeIn 1s cubic-bezier(.77,0,.18,1) both;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
th, td {
  border: none;
  padding: 0.7rem 0.6rem;
  text-align: left;
  font-size: 1.01rem;
}
th {
  background: #e9eafc;
  color: #5a7cff;
  font-weight: 600;
}
td {
  border-top: 1px solid #e0e0e0;
  vertical-align: middle;
}
footer {
  background: linear-gradient(90deg, #5a7cff 0%, #bca7ff 100%);
  color: #fff;
  text-align: center;
  padding: 1.2rem 0 1rem 0;
  width: 100%;
  margin-top: 3rem;
  border-radius: 24px 24px 0 0;
  font-size: 1.08rem;
  box-shadow: 0 -2px 24px rgba(90,124,255,0.05);
}
footer a {
  color: white;
  text-decoration: none;
  margin: 0 0.5rem;
}
footer a:hover {
  text-decoration: underline;
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding: 0 1vw;
  }
}
@media (max-width: 700px) {
  .container {
    max-width: 100vw;
    padding: 0 0.5rem;
  }
  .hero {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0.5rem 1rem 0.5rem;
    border-radius: 0 0 20px 20px;
  }
  .logo {
    max-width: 70px;
    margin: 0 0 0.5rem 0;
  }
  .hero-text h1 {
    font-size: 1.3rem;
  }
  .tabs {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
  }
  .tab-button {
    width: 100%;
    min-width: auto;
    font-size: 1rem;
  }
  button {
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
  }
  table.card {
    font-size: 0.96rem;
  }
  .intro-card {
    padding: 1rem 0.7rem 0.7rem 0.7rem;
  }
}

/* Card style for intro and tables */
.intro-card, .card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(76,175,80,0.10);
  border: 1px solid #e0e0e0;
  padding: 1.5rem 1.5rem 1.2rem 1.5rem;
  margin-bottom: 2rem;
}
.intro-card {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2.2rem;
  color: #5a7cff;
}

/* Utility classes */
.subtitle {
  font-size: 1.1rem;
  color: #bca7ff;
  font-weight: 400;
  margin-top: 0.5rem;
}
