/* Placeholder Image Generator Tool Styles */

.tool-container {
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Layout */
.placeholder-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .placeholder-layout {
        grid-template-columns: 1fr;
    }
}

/* Controls */
.controls-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

h3 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #343541;
    font-weight: 700;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.75rem;
}

.control-group {
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.control-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.control-row:last-child {
    margin-bottom: 0;
}

/* Dimension Inputs */
.dimension-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dimension-input label {
    font-weight: 600;
    min-width: 60px;
    color: #343541;
}

.dimension-input input {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.unit {
    color: #666;
}

/* Aspect Ratio */
.aspect-ratio {
    display: flex;
    align-items: center;
}

.aspect-ratio label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    color: #343541;
    background-color: white;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.aspect-ratio input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* Preset Sizes */
.preset-sizes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.preset-btn {
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.preset-btn:hover {
    background-color: #e0e0e0;
}

/* Color Inputs */
.color-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.color-input label {
    font-weight: 600;
    min-width: 90px;
    color: #343541;
}

.color-input input[type="color"] {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
}

.color-input input[type="text"] {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
}

.random-colors {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-small:hover {
    background-color: #e0e0e0;
}

/* Text Options */
.text-type-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.text-type-option label {
    font-weight: 600;
    min-width: 70px;
    color: #343541;
}

.text-type-option select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 150px;
    font-size: 1rem;
    font-weight: 500;
    color: #343541;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23343541' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.7rem top 50%;
    background-size: 1.2rem auto;
    padding-right: 2.5rem;
}

.text-input {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.text-input label {
    font-weight: 600;
    color: #343541;
}

.text-input input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
}

/* Format Options */
.format-options {
    display: flex;
    gap: 1.5rem;
}

.format-options label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    color: #343541;
    background-color: white;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.format-options input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* Actions */
.actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Preview */
.preview-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.image-preview {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    position: relative;
}

canvas {
    max-width: 100%;
    border: 1px solid #ddd;
}

.image-url {
    margin-top: 1rem;
}

.url-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.url-container input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.url-note {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .control-row {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .image-preview {
        min-height: 200px;
    }
}