/* PREVIEW AND SELECT PAGE */
.preview-and-select-container {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.ocr-text-column {
  flex: 2;
  border: 1px solid #ccc;
  padding: 10px;
  max-height: 400px;
  overflow-y: scroll;
}

.clause-column {
  flex: 1;
  border: 1px solid #ccc;
  padding: 10px;
  max-height: 400px;
  overflow-y: auto;
}

.collapse-section {
  display: none;
}

/* HERO SECTION & LANDING PAGE */
.hero-section {
  background: linear-gradient(to bottom right, #0804c4, #7da5f1);
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0.25rem;
  box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.2);
}

.hero-content {
  max-width: 800px; /* Wider content area */
  max-height: 500px;
  margin: 0 auto; /* Center the content */
  padding: 0.5rem;
}

.hero-content h1 {
  font-size: 4rem; /* Larger heading */
  font-weight: 700;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.5rem; /* Slightly larger subtitle */
  margin-bottom: 2rem;
  line-height: 1.6;
  color: #e2e2e2;
}

.btn-group {
  margin-bottom: 1.5rem;
}

/* Base button styles */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem; /* Larger buttons */
  margin: 0.5rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  font-size: 1.1rem; /* Slightly larger font */
}

/* Hero section buttons */
.hero-section .btn-primary,
.hero-section .btn-secondary {
  display: inline-block;
  padding: 0.8rem 2rem; /* Larger buttons */
  margin: 0.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem; /* Slightly larger font */
}

.hero-section .btn-primary {
  background: linear-gradient(to bottom, #ff6a5f 0%, #ff4b3d 100%);
  color: #fff;
  box-shadow: 0 4px 10px rgba(255, 106, 95, 0.4);
  border: none;
}

.hero-section .btn-primary:hover {
  background-color: #ff574c;
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(255, 106, 95, 0.6);
}

.hero-section .btn-secondary {
  background-color: #ffffff;
  color: #6b9dfa;
  border: none;
}

.hero-section .btn-secondary:hover {
  background-color: #e5e5e5;
  transform: scale(1.05);
}

/* Form buttons */
.card .btn-primary,
.upload-container .btn-primary {
  background-color: #0d6efd;
  color: white;
  border: none;
}

.card .btn-primary:hover,
.upload-container .btn-primary:hover {
  background-color: #0b5ed7;
  transform: none;
}

/* Optional "glossy" highlight for hero buttons only */
.hero-section .btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  opacity: 0.5;
  pointer-events: none;
}

.free-upload {
  font-size: 1.1rem;
}

/* NAVBAR STYLES */
.navbar-custom {
  background-color: #000000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
}

/* Left side brand/logo */
.nav-left .brand-logo {
  color: #fffbc9;
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
}

.nav-left .brand-logo:hover {
  text-decoration: underline;
}

/* Right side links */
.nav-right a {
  color: #fff;
  text-decoration: none;
  margin-left: 1rem;
  font-size: 1rem;
  transition: color 0.2s;
}

.nav-right a:hover {
  color: #ddd;
}

/* Optional welcome text styling */
.nav-welcome {
  margin-right: 1rem;
  font-weight: 300;
  color: #ccc;
}

/* Django messages list */
.messages {
  margin: 10px auto;
  padding: 10px;
  width: 90%;
  max-width: 600px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  border-radius: 4px;
  list-style: none;
}

.messages li {
  margin-bottom: 5px;
}

.messages .error {
  background-color: #fdd;
  border-color: #f99;
}

.messages .success {
  background-color: #dfd;
  border-color: #9f9;
}

/* UPLOAD PAGE STYLES */
.upload-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.upload-container h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.upload-instructions {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.upload-form .form-group {
  margin-bottom: 1rem;
}

.upload-form label {
  display: block;
  text-align: left;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.upload-form input[type="file"] {
  display: block;
  margin: 0 auto 1rem auto;
}

/* Recent uploads section */
.recent-uploads {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: #fafafa;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.recent-uploads h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-align: center;
}

.upload-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.upload-list li {
  padding: 0.5rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.upload-list li:last-child {
  border-bottom: none;
}

.upload-name {
  font-weight: 600;
  color: #333;
}

.upload-date {
  color: #999;
  font-style: italic;
}

/* MARKDOWN CONTENT STYLES */
.markdown-content h2 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #333;
}

.markdown-content h3 {
  font-size: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: #444;
}

.markdown-content ul,
.markdown-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.markdown-content li {
  margin-bottom: 0.25rem;
}

.markdown-content p {
  margin-bottom: 1rem;
}

/* Improved Upload Page Styles */

.upload-container {
  max-width: 650px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  text-align: center;
}

.upload-title {
  font-size: 2rem;
  color: #222;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.upload-subtitle {
  color: #555;
  font-size: 1rem;
  margin-bottom: 1.8rem;
}

.usage-counters {
  display: flex;
  justify-content: center;
  gap: 25px;
  background-color: #f4f7fa;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  color: #555;
}

.counter-item {
  font-size: 0.9rem;
}

.counter-item strong {
  font-weight: 600;
  color: #222;
}

.form-group {
  margin-bottom: 1.8rem;
  text-align: left;
}

.form-group label {
  font-weight: 600;
  color: #333;
  display: block;
  margin-bottom: 0.5rem;
}

.required {
  color: #e74c3c;
}

.optional {
  color: #999;
  font-weight: normal;
  font-size: 0.9rem;
}

.form-group input[type="file"] {
  width: 100%;
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 0.6rem;
  background-color: #fafafa;
  transition: border-color 0.3s ease;
}

.form-group input[type="file"]:hover {
  border-color: #0d6efd;
}

.form-text {
  color: #666;
  font-size: 0.85rem;
}

.btn-primary {
  display: inline-block;
  background-color: #0d6efd;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background-color: #095cd8;
  transform: translateY(-2px);
}

.recent-uploads {
  max-width: 650px;
  margin: 3rem auto;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.upload-list {
  padding: 0;
  margin: 0;
}

.upload-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid #ececec;
}

.upload-name {
  font-weight: 500;
  color: #333;
}

.upload-date {
  font-size: 0.85rem;
  color: #999;
}

.btn-view {
  padding: 0.35rem 0.75rem;
  border-radius: 5px;
  background-color: #e7efff;
  color: #0d6efd;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-size: 0.85rem;
}

.btn-view:hover {
  background-color: #cddfff;
}