/* Global Styles */
body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #2d3748;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
}

header {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: white;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
}

h1 {
  margin: 0;
  font-size: 2.5rem;
}

h2 {
  color: #6a11cb;
  border-bottom: 2px solid #6a11cb;
  padding-bottom: 0.5rem;
  margin-top: 2rem;
}

h3 {
  color: #2575fc;
  margin-top: 1.5rem;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

/* Form Styles */
#filterForm {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.keyword-input {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.keyword-input input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.keyword-input input:focus {
  outline: none;
  border-color: #6a11cb;
  box-shadow: 0 0 0 2px rgba(106, 17, 203, 0.2);
}

button {
  background: #6a11cb;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

button:hover {
  background: #2575fc;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Results Section */
#resultsSection {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#resultsDisplay ul {
  list-style: none;
  padding: 0;
}

#resultsDisplay li {
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

#resultsDisplay li:last-child {
  border-bottom: none;
}

/* Error Styling */
.error {
  color: #e53e3e;
  background: #fff5f5;
  padding: 1rem;
  border-radius: 4px;
  border-left: 4px solid #e53e3e;
}
/* Add to your existing filter.css or replace */

.status-bar {
  display: flex;
  justify-content: space-between;
  background: #fff;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border-left: 5px solid #6a11cb;
}

.section-header {
  margin-bottom: 1.5rem;
}

.subtitle {
  font-size: 0.9rem;
  color: #718096;
  margin-top: -0.5rem;
}

.input-group {
  margin-bottom: 2rem;
}

.input-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.input-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

.input-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
}

.remove-btn {
  background: #fff5f5;
  color: #e53e3e;
  border: 1px solid #feb2b2;
  margin-top: 0;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  font-weight: bold;
}

.remove-btn:hover {
  background: #e53e3e;
  color: white;
}

.secondary-button {
  background: #edf2f7;
  color: #4a5568;
  margin-bottom: 2rem;
}

.secondary-button:hover {
  background: #e2e8f0;
}

.primary-button {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
}

.patent-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.patent-list li:hover {
  background: #f7fafc;
}

.patent-info {
  display: flex;
  flex-direction: column;
}

.patent-title {
  font-weight: bold;
  color: #2d3748;
}

.patent-meta {
  font-size: 0.85rem;
  color: #718096;
}

.view-link {
  color: #2575fc;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
}

.download-container {
  background: #ebf8ff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.dl-btn {
  background: #3182ce;
  margin-top: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeIn 0.3s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
  .keyword-input {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  header {
    padding: 1.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
}