@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');

/* Reset */
* {
  box-sizing: border-box;
  font-family: Tahoma, "Trebuchet MS", sans-serif;
}

/* Page background */
body {
  margin: 0;
  padding: 40px;
  background: linear-gradient(135deg, #f6f9fc, #e9eef5);
  color: #1f2937;
}

/* App container */
.container {
  max-width: 1200px;
  margin: auto;
  background: white;
  padding: 50px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Heading one */
h1 {
  margin-top: 0;
  font-size: 2.8rem;
}

/* Apply Playfair Display */
.playfair {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Title page */
#titlePage {
  background-image: url('assets/Untitled1_20260201012341.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

}

/* Banner top  */
.banner-top {
  position: relative;
  background-image: linear-gradient(rgba(234,246,255,0.55), rgba(255,247,230,0.55)),
                    url('assets/Untitled1_20260201012341.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  margin-bottom: 30px;
  overflow: hidden;
  min-height: 420px;
}

/* Logo styling */
.site-logo {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

/* Banner content */
.banner-content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px; 
  padding: 220px 20px; 
  text-align: center;
}

/* Main banner heading */
.banner-content h1 {
  font-size: 5.5rem; 
  margin: 0;
  color: #0f172a;
}

/* Title page large heading */
#titlePage .playfair {
  font-size: 6.5rem;
  margin: 0;
  color: #0f172a;
}

/* Profile button in banner */
.banner-profile {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 5;
  background: rgba(37,99,235,0.95);
  color: white;
  border-radius: 8px;
  padding: 10px 14px;
}

/* About section layout*/
.about-wrap {
  margin-bottom: 30px;
}
.about-section {
  display: flex;
  gap: 30px;
  align-items: stretch;
}

/* About section content */
.about {
  flex: 1;
  min-height: 220px;
  background: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

/* Logo area */
.logo {
  flex: 1;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Analyze section */
.analyze-section {
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
  padding: 40px 0;
  margin-top: 30px;
  border-radius: 12px;
}
.analyze-section .container {
  background: transparent;
  box-shadow: none;
  padding: 40px;
}

/* Buttons */
button {
  background: #8FBC8B;
  color: white;
  border: none;
  padding: 16px 28px;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 18px;
}

button:hover {
  background: #8FBC8B;
}


/* Inputs */
input[type="file"],
input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  margin-top: 14px;
  padding: 16px;
  font-size: 1rem;
  margin-bottom: 20px;
}


/* Labels */
label {
  display: block;
  margin-top: 20px;
  font-weight: bold;
}


/* Output box */
#output {
  margin-top: 20px;
  padding: 15px;
  background: #f1f5f9;
  border-radius: 10px;
  white-space: pre-wrap;
}


/* Small language buttons */
.lang-button {
  padding: 8px 12px;
  font-size: 0.9rem;
  border-radius: 8px;
  margin-right: 8px;
  background: #8FBC8B;
  color: white;
}


.lang-button:hover {
  background: #1d4ed8;
}


/* Title page layout */
.title-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: 20px;
  gap: 40px;
}


.title-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}


.title-content h1 {
  font-size: 3.5rem;
  margin: 0;
}


.title-content p {
  font-size: 1.1rem;
  /* allow longer translations to remain on a single line */
  max-width: 1000px;
  margin: 0;
  color: #475569;
  white-space: nowrap;
}


.title-content button {
  min-width: 150px;
  margin: 10px;
}


.language-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}


/* Utility classes */
.page {
  display: none;
}


.page.active {
  display: block;
}


.link-button {
  background: none;
  border: none;
  color: #8FBC8B;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-size: 1rem;
}


.link-button:hover {
  color: #1d4ed8;
}


/* Margin utilities */
.mt-20 {
  margin-top: 20px;
}


.mr-10 {
  margin-right: 10px;
}


/* Card/Box styling for results page */
.feedback-box {
  background: #f0f4f8;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}


.next-steps-box {
  background: #e8f5e9;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* Profile button */
.profile-button {
  padding: 12px 20px;
  font-size: 0.95rem;
  margin-top: 0;
  background: #8FBC8B;
  border-radius: 8px;
}


.profile-button:hover {
  background: #8FBC8B;
}


/* Profile section styling */
.profile-section {
  background: #f8fafc;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 25px;
}


.profile-section h2 {
  margin-top: 0;
  font-size: 1.4rem;
  margin-bottom: 20px;
}


/* Profile info display */
.profile-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}


.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}


.info-row label {
  font-weight: bold;
  color: #475569;
  margin: 0;
}


.info-row span {
  color: #1f2937;
  font-weight: 500;
}


/* Profile edit section */
.profile-edit {
  display: flex;
  flex-direction: column;
  gap: 20px;
}


.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.form-row label {
  font-weight: bold;
  display: block;
  margin: 0;
}


.form-row input,
.form-row select {
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
}


/* Secondary button for cancel actions */
.btn-secondary {
  background: #cbd5e1;
  color: #1f2937;
}


.btn-secondary:hover {
  background: #b0bcc4;
}
