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

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    background-color: #ffffff;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 50vw;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

header {
    
    margin-bottom: 40px;
   

}

h1 {
    font-size: 2.5rem;
    color: #000000;
}

.content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: flex-start;
    gap: 20px;
}

.input-container {
    width: 50vw;
    max-width: 800px;
}

textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    resize: vertical;
    min-height: 200px;
    font-size: 1rem;
}

textarea:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 5px rgba(108, 92, 231, 0.3);
}

.button-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.submit-button {
    background-color: #6c5ce7;
    display: flex;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0;
    align-self: flex-start;
}

.submit-button:hover {
    background-color: #5b4bc4;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    textarea {
        min-height: 150px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .submit-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

.loading-container {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.hidden {
    display: none;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress {
    width: 0%;
    height: 100%;
    background-color: #6c5ce7;
    transition: width 0.3s ease;
}

.status-message {
    color: #333;
    font-size: 0.9rem;
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
}

.error-message {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.success-message {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.response-container {
    width: 100%;
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    background-color: #f8f9fa;
}

.response-container.hidden {
    display: none;
}

.response-text {
    font-size: 1rem;
    line-height: 1.5;
    white-space: pre-wrap;
    color: #333;
}

.download-container {
    margin-top: 20px;
    text-align: center;
}

.download-container.hidden {
    display: none;
}

.download-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.download-button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.download-button:active {
    transform: translateY(0);
}

/* Add this to your styles.css file */

.spinner {
  width: 40px;
  height: 40px;
  margin: 20px auto;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top: 4px solid #3498db;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hidden {
  display: none;
}

.status-message {
  margin: 15px 0;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
}

.success-message {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
}

.error-message {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
}

#downloadContainer {
  margin-top: 20px;
  text-align: center;
}

#downloadBtn {
  padding: 10px 20px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

#downloadBtn:hover {
  background-color: #218838;
}