.curl-converter-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    padding: 20px;
}

.input-section, .output-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.curl-example-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.curl-example-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid #c5d8ef;
    border-radius: 8px;
    background: #fff;
    color: #1971c2;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.curl-example-btn:hover,
.curl-example-btn.active {
    background: #e7f5ff;
    border-color: #1971c2;
    box-shadow: 0 1px 4px rgba(25, 113, 194, 0.15);
}

.curl-example-btn .ex-title {
    font-size: 0.85em;
    font-weight: 700;
    line-height: 1.2;
}

.curl-example-btn .ex-hint {
    font-size: 0.72em;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-weight: bold;
    color: #495057;
}

textarea, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
}

.code-container {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    overflow-x: auto;
}

.button-group {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: #1971c2;
    color: white;
}

.btn-primary:hover {
    background-color: #1864ab;
}

.btn-secondary {
    background-color: #e9ecef;
    color: #495057;
}

.btn-secondary:hover {
    background-color: #dee2e6;
}

.hex-image-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    padding: 20px;
}

.input-section {
    display: flex;
    gap: 20px;
}

.hex-input, .image-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    font-weight: bold;
    color: #495057;
}

textarea {
    width: 100%;
    height: 200px;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    resize: vertical;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
}

.drop-zone {
    width: 100%;
    height: 200px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: #1971c2;
    background-color: #f8f9fa;
}

.drop-zone i {
    font-size: 48px;
    color: #adb5bd;
}

.drop-zone p {
    color: #868e96;
    margin: 0;
}

.preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    display: none;
}

.buttons {
    display: flex;
    gap: 10px;
}

.action-button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.convert-button {
    background-color: #1971c2;
    color: white;
}

.convert-button:hover {
    background-color: #1864ab;
}

.clear-button {
    background-color: #e9ecef;
    color: #495057;
}

.clear-button:hover {
    background-color: #dee2e6;
}

.error-message {
    color: #e03131;
    font-size: 0.9em;
    display: none;
}

#fileInput {
    display: none;
}
