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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    color: #7f8c8d;
}

/* Upload Area Styles */
.upload-container {
    margin-bottom: 30px;
}

.upload-area {
    background-color: #fff;
    border: 2px dashed #3498db;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #2980b9;
    background-color: #f8f9fa;
}

.upload-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 15px;
}

.upload-area p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.upload-area span {
    display: block;
    margin: 10px 0;
    color: #7f8c8d;
}

#browse-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#browse-button:hover {
    background-color: #2980b9;
}

/* Results Container Styles */
.results-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-preview {
    text-align: center;
    margin-bottom: 30px;
}

.image-preview h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

#preview-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.info-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .info-container {
        grid-template-columns: 1fr 1fr;
    }
}

.prompt-section, .parameters-section, .raw-section {
    margin-bottom: 20px;
}

.prompt-section h2, .parameters-section h2, .raw-section h2 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.prompt-box, .raw-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 15px;
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.parameters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.parameter-item {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 10px;
}

.parameter-name {
    font-weight: bold;
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.parameter-value {
    font-size: 0.9rem;
    color: #2c3e50;
}

.copy-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.copy-button:hover {
    background-color: #2980b9;
}

.upload-another-button {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 30px;
    transition: background-color 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.upload-another-button:hover {
    background-color: #27ae60;
}

.placeholder {
    color: #aaa;
    font-style: italic;
}

/* Footer Styles */
footer {
    text-align: center;
    margin-top: 30px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Drag and Drop Highlight */
.highlight {
    border-color: #2ecc71;
    background-color: rgba(46, 204, 113, 0.1);
}