* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  min-height: 100vh;
  color: #e2e8f0;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; }

.header { text-align: center; margin-bottom: 3rem; }
.header h1 { font-size: 2rem; font-weight: bold; margin-bottom: 0.5rem; color: #f7fafc; }
.header p { color: #a0aec0; font-size: 1rem; }

.card-selection { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .card-selection { grid-template-columns: 1fr 1fr; } }

.selection-card {
  background: #2d3748; border-radius: 0.5rem; overflow: hidden;
  cursor: pointer; transition: all 0.3s; border: 2px solid transparent;
}
.selection-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.3); transform: translateY(-2px); }
.selection-card.bug-card { color: #fc8181; }
.selection-card.feature-card { color: #63b3ed; }

.card-icon-header { padding: 2rem; display: flex; align-items: center; justify-content: center; }
.bug-card .card-icon-header { background: rgba(252,129,129,0.1); }
.feature-card .card-icon-header { background: rgba(99,179,237,0.1); }
.card-icon-header i { font-size: 4rem; }

.card-body { padding: 1.5rem; }
.card-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; color: #f7fafc; }
.card-description { color: #a0aec0; margin-bottom: 1rem; font-size: 0.95rem; }
.card-features { list-style: none; margin: 1rem 0; }
.card-features li { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.875rem; color: #a0aec0; }
.card-features i { color: #48bb78; margin-top: 0.15rem; flex-shrink: 0; }

.card-button {
  width: 100%; padding: 0.75rem; border: none; border-radius: 0.375rem;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; transition: all 0.2s;
}
.bug-card .card-button { background: #fc8181; color: #742a2a; }
.bug-card .card-button:hover { background: #f56565; }
.feature-card .card-button { background: #63b3ed; color: #1e3a8a; }
.feature-card .card-button:hover { background: #4299e1; }

.form-section { display: none; max-width: 600px; margin: 0 auto; }
.form-section.active { display: block; }

.back-button {
  background: transparent; border: 1px solid #4a5568; color: #e2e8f0;
  padding: 0.5rem 1rem; border-radius: 0.375rem; cursor: pointer; margin-bottom: 1.5rem;
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; transition: all 0.2s;
}
.back-button:hover { background: #4a5568; }

.form-card { background: #2d3748; border-radius: 0.5rem; padding: 2rem; }

.user-info {
  background: #1a202c; padding: 1rem; border-radius: 0.375rem;
  margin-bottom: 1.5rem; font-size: 0.875rem; color: #a0aec0;
}
.user-info strong { color: #e2e8f0; }

.access-badge {
  display: inline-block; padding: 0.25rem 0.5rem; border-radius: 0.25rem;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
}
.access-badge.private { background: rgba(99,179,237,0.2); color: #63b3ed; border: 1px solid #63b3ed; }
.access-badge.public  { background: rgba(160,174,192,0.2); color: #a0aec0; border: 1px solid #a0aec0; }

.form-group { margin-bottom: 1.25rem; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 1.25rem; align-items: end; }
@media (min-width: 768px) { .form-grid { grid-template-columns: repeat(3, 1fr); } }

label { display: block; margin-bottom: 0.5rem; color: #e2e8f0; font-weight: 500; font-size: 0.875rem; }

input, textarea, select {
  width: 100%; padding: 0.75rem; border: 2px solid #4a5568; border-radius: 0.375rem;
  font-size: 0.875rem; font-family: inherit; background: #1a202c; color: #e2e8f0; transition: border-color 0.3s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: #63b3ed; }
textarea { resize: vertical; min-height: 150px; }
select { cursor: pointer; }

.submit-button {
  width: 100%; padding: 0.875rem; border: none; border-radius: 0.375rem;
  font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.submit-button.bug { background: #fc8181; color: #742a2a; }
.submit-button.bug:hover { background: #f56565; }
.submit-button.feature { background: #63b3ed; color: #1e3a8a; }
.submit-button.feature:hover { background: #4299e1; }
.submit-button:disabled { opacity: 0.6; cursor: not-allowed; }

.logout-btn {
  background: transparent; border: 1px solid #4a5568; color: #a0aec0;
  padding: 0.5rem 1rem; font-size: 0.875rem; margin-top: 1rem;
  cursor: pointer; border-radius: 0.375rem; width: 100%; transition: all 0.2s;
}
.logout-btn:hover { background: #4a5568; color: #e2e8f0; }

.error {
  background: rgba(252,129,129,0.1); border: 1px solid #fc8181; color: #fc8181;
  padding: 0.75rem; border-radius: 0.375rem; margin-bottom: 1rem; font-size: 0.875rem;
}
.success {
  background: rgba(72,187,120,0.1); border: 1px solid #48bb78; color: #48bb78;
  padding: 0.75rem; border-radius: 0.375rem; margin-bottom: 1rem; font-size: 0.875rem;
  position: relative; padding-right: 2.5rem;
}
.success a { color: #68d391; font-weight: 600; text-decoration: underline; }
.success .close-btn {
  position: absolute; top: 0.75rem; right: 0.75rem; background: transparent;
  border: none; color: #48bb78; cursor: pointer; padding: 0; font-size: 1.25rem;
  line-height: 1; width: 1.5rem; height: 1.5rem; display: flex; align-items: center; justify-content: center;
}
.success .close-btn:hover { color: #68d391; }

/* Login */
.login-section {
  max-width: 400px; margin: 0 auto; text-align: center;
  background: #2d3748; padding: 2rem; border-radius: 0.5rem;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
body:has(#loginSection:not([style*="display: none"])) { display: flex; align-items: center; justify-content: center; }
body:has(#loginSection:not([style*="display: none"])) .container { position: relative; min-height: 100vh; width: 100%; }
.login-section h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.login-section p { color: #a0aec0; margin-bottom: 1rem; font-size: 0.875rem; }

.purpose-card {
  background: rgba(99, 179, 237, 0.08);
  border: 1px solid rgba(99, 179, 237, 0.25);
  border-radius: 0.5rem;
  padding: 1rem 1rem 1.1rem;
  text-align: left;
  margin-bottom: 1.25rem;
}
.purpose-card h2 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: #f7fafc;
}
.purpose-card p {
  color: #d1d5db;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 0.75rem;
}
.purpose-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #a0aec0;
  font-size: 0.9rem;
}
.purpose-card li {
  margin-bottom: 0.35rem;
}

/* Google sign-in button */
.google-signin-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  width: 100%; padding: 0.75rem 1rem; background: #fff; color: #3c4043;
  border: 1px solid #dadce0; border-radius: 0.375rem; font-size: 0.9375rem;
  font-weight: 500; cursor: pointer; transition: background 0.2s, box-shadow 0.2s;
}
.google-signin-btn:hover { background: #f8f9fa; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.google-signin-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.google-signin-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

#message { margin-bottom: 1rem; }

/* Image upload */
.image-upload-area {
  border: 2px dashed #4a5568; border-radius: 0.375rem; padding: 1.5rem;
  text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; background: #1a202c;
}
.image-upload-area:hover, .image-upload-area.drag-over { border-color: #63b3ed; background: rgba(99,179,237,0.05); }
.image-upload-area input[type="file"] { display: none; }
.image-upload-area .upload-hint { color: #a0aec0; font-size: 0.8rem; margin-top: 0.5rem; }

.image-preview-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.image-preview-item { position: relative; width: 80px; height: 80px; }
.image-preview-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 0.25rem; border: 1px solid #4a5568; }
.image-preview-item .remove-img {
  position: absolute; top: -6px; right: -6px; background: #fc8181; color: white;
  border: none; border-radius: 50%; width: 18px; height: 18px; font-size: 10px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1;
}
.upload-status { font-size: 0.75rem; color: #a0aec0; margin-top: 0.4rem; }
/* ==========================================
   LEGAL PAGES (Privacy Policy / Terms)
   ========================================== */

body {
    line-height: 1.65;
}

.container > h1 {
    font-size: 2.5rem;
    margin-bottom: .5rem;
    color: #f8fafc;
}

.container > p:first-of-type {
    color: #94a3b8;
    font-size: .95rem;
    margin-bottom: 2.5rem;
}

.container h2 {
    margin-top: 2.5rem;
    margin-bottom: .75rem;
    color: #63b3ed;
    font-size: 1.35rem;
    border-bottom: 1px solid #374151;
    padding-bottom: .4rem;
}

.container p {
    margin: 1rem 0;
    color: #d1d5db;
    max-width: 75ch;
}

.container ul {
    margin: 1rem 0 1.5rem 1.75rem;
    max-width: 75ch;
}

.container li {
    margin-bottom: .6rem;
    color: #d1d5db;
}

.container strong {
    color: #f8fafc;
}

/* Card around legal content */
.legal-card {
    background: #2d3748;
    border-radius: .75rem;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0,0,0,.25);
    border: 1px solid #374151;
}

/* Optional footer */
.legal-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #374151;
    text-align: center;
    color: #94a3b8;
    font-size: .9rem;
}

.legal-footer a {
    color: #63b3ed;
    text-decoration: none;
}

.legal-footer a:hover {
    text-decoration: underline;
}