/* Base styles to match Photo Analyzer exactly */
body {
    font-family: sans-serif;
    min-height: 100vh;
    margin: 0;
    background-color: #f4f4f4;
    padding: 20px;
}

h1 {
    color: black;
}

/* Container layout */
.container {
    display: grid;
    grid-template-columns: minmax(400px, 1fr) minmax(800px, 1fr);
    grid-template-rows: auto auto;
    gap: 30px;
    align-items: start;
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 1800px;
    margin: 0;
}

#form-container {
    grid-column: 1;
    grid-row: 1;
}

#sample-container {
    grid-column: 2;
    grid-row: 1;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#rendered-container {
    grid-column: 1;
    grid-row: 2;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.default-visualization {
    max-width: 50%;
    height: auto;
    object-fit: contain;
    margin-top: 40px;
    margin-left: -220px;
}

/* Description text */
.description {
    color: #666;
    line-height: 1.4;
    margin-bottom: 20px;
}

/* Form layout */
#form-container {
    width: 100%;
}

/* Form groups */
.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

/* Labels */
.form-group label {
    min-width: 140px;
    padding-right: 10px;
    font-size: 1.1em;  /* Larger font for labels */
    color: #333;
}

/* Inputs */
input[type="number"] {
    width: 60px;
    padding: 2px 4px;
    border: 1px solid #999;
    border-radius: 2px;
    font-size: 14px;  /* Keep normal size for inputs */
    height: 24px;
}

/* Visualization type dropdown */
select#visualization-type {
    width: 240px !important;
    font-size: 14px;  /* Keep normal size for dropdown */
}

/* Help text */
.input-help {
    display: none;
}

/* Size options */
#size-options {
    margin-top: 10px;
}

#size-options .form-group {
    display: inline-flex;
    margin-right: 20px;
}

/* Generate button - match Photo Analyzer's green button style */
#generate-btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    min-width: 120px;
    border: none;
    white-space: nowrap;
    text-align: center;
    color: white;
    background-color: #28a745;  /* Changed to green to match Take Picture button */
    margin: 15px 0;
}

#generate-btn:hover {
    background-color: #218838;  /* Darker green on hover */
}

/* Progress indicator */
#progress {
    text-align: center;
    margin: 10px 0;
    font-style: italic;
    color: #666;
    font-size: 13px;
}

/* Visualization container */
#visualization-container {
    width: 100%;
    height: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
}

#visualization-canvas {
    max-width: 800px;
    max-height: 800px;
    width: auto;
    height: auto;
}

/* PDF Export button */
#export-pdf-btn {
    margin-top: 15px;
    padding: 3px 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 13px;
}

/* Error states */
input[aria-invalid="true"] {
    border-color: #ff4444;
}

/* Disabled states */
input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Error message */
.error-message {
    color: #ff4444;
    text-align: center;
    margin: 10px 0;
    font-size: 13px;
}

/* Dependent options styling */
#dependent-options {
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 0;
    background: none;
    border: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        max-width: 800px;
    }
    
    #sample-container {
        grid-column: 1;
        grid-row: 2;
    }
    
    #rendered-container {
        grid-row: 3;
    }
    
    #visualization-container {
        height: auto;
        min-height: 600px;
    }
}

/* Add to existing styles */
#size-options {
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 0;
    background: none;
    border: none;
}

#size-options .form-group {
    display: inline-flex !important;
    margin-right: 20px;
}

#size-options input[disabled] {
    background-color: #eee;
    cursor: not-allowed;
}

/* PDF Export button styling */
#export-pdf-btn {
    margin-top: 15px;
    padding: 4px 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

#export-pdf-btn:hover {
    background-color: #45a049;
}

#export-pdf-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Help text styling */
#form-container .input-help {
    font-size: 0.85em;
    color: #666;
    margin-left: 20px !important;
    margin-top: 2px;
}

/* Size options specific styling */
#form-container #size-options {
    margin-top: 12px;
    padding: 12px;
    background-color: #f9f9f9;
    border-radius: 3px;
}

#form-container #size-options .form-group {
    display: flex !important;
    align-items: center !important;
}

/* Size options layout */
#size-options {
    margin-top: 8px;
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#size-options .form-group {
    display: inline-flex !important;
    margin-right: 20px;
}

/* Help button */
.help-link {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.help-link:hover {
    background-color: #0056b3;
}

/* Form layout adjustments */
.help-text-indent {
    margin-left: 20px;
    color: #666;
    font-size: 0.85em;
    margin-top: 2px;
    margin-bottom: 15px;
}

.size-inputs {
    display: block;
    background-color: #f9f9f9;
    padding: 12px;
    border-radius: 3px;
    margin: 12px 0;
}

.size-inputs .form-group {
    display: flex;
    align-items: center;
    position: relative;
}

/* Remove lock icon and related styles */
.input-help {
    display: none;
} 