/*
 * File: style.css
 * Path: \themes\kadence-child-theme-master\tools\image-to-ghibli\style.css
 * (New, isolated CSS for the Image to Ghibli Style tool)
 */

#image-to-ghibli-tool { /* Unique ID for the main container */
    max-width: 700px;
    width: 95%;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-family: "Segoe UI", sans-serif;
    text-align: center;
}

#image-to-ghibli-tool h3 {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: #333;
}

/* --- Upload Section Styles (Matching Reference Image) --- */
.upload-section {
    border: 2px dashed #FF8A08; /* Orange dashed border from reference */
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.upload-section:hover {
    border-color: #e67e22; /* Darker orange on hover */
}

.upload-section input[type="file"] {
    display: none;
}

.upload-section label {
    font-size: 1.2rem;
    color: #555;
    margin-top: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-section label span {
    font-weight: bold;
    color: #FF8A08; /* Orange for "Click to Upload" */
    margin-top: 5px;
    text-decoration: underline;
}

.upload-section .icon {
    font-size: 3rem;
    color: #FF8A08; /* Orange for icon */
    margin-bottom: 10px;
}

/* --- Loading and Error Indicators --- */
#ghibliLoadingIndicator { /* Unique ID */
    display: none;
    margin-top: 1.5rem;
    color: #FF8A08; /* Orange loading text */
    font-weight: bold;
}

#ghibliErrorMessage { /* Unique ID */
    color: #dc3545; /* Red for errors */
    margin-top: 1rem;
    font-weight: bold;
    display: none;
}

/* --- Action Buttons Container (New, matching Convert to JPG) --- */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* --- Common Button Styles (Matching Reference Image) --- */
.convert-btn,
.clear-btn {
    background-color: #FF8A08; /* Orange button */
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
    min-width: 120px;
}

.convert-btn:hover,
.clear-btn:hover {
    background-color: #e67e22; /* Darker orange on hover */
    transform: translateY(-2px);
}

.convert-btn:active,
.clear-btn:active {
    transform: translateY(0);
}


/* --- Output Section --- */
.output-section {
    margin-top: 2rem;
    text-align: left;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.output-section h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
    text-align: left;
}

/* Download Link Style (Matching new button aesthetic) */
.download-link {
    display: inline-block;
    background-color: #FF8A08; /* Orange download button */
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    transition: background-color 0.2s ease;
}

.download-link:hover {
    background-color: #e67e22;
}

/* Hide canvas as it's used internally */
#ghibliProcessingCanvas { /* Unique ID */
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .upload-section {
        padding: 1.5rem;
    }
    .action-buttons {
        flex-direction: column; /* Stack buttons on small screens */
        gap: 0.8rem;
    }
    .convert-btn,
    .clear-btn {
        width: 100%; /* Full width buttons */
        min-width: auto;
    }
}