/* app/static/css/styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    color: #333;
    min-height: 100vh;
    padding: 20px;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
}


header {
    text-align: center;
    padding: 30px 0;
    color: white;
}


header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}


header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}


.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}


.input-section {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


.preview-section {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}


.section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #1a2a6c;
    display: flex;
    align-items: center;
    gap: 10px;
}


.section-title i {
    background: #1a2a6c;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.form-group {
    margin-bottom: 25px;
}


label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}


.model-description {
    background: #f0f4ff;
    border: 1px solid #d0d8ff;
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #555;
}


.cost-badge {
    display: inline-block;
    background: #2ecc71;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
}


.cost-badge.paid {
    background: #f39c12;
}


.cost-badge.expensive {
    background: #e74c3c;
}


input, textarea, select {
    width: 100%;
    padding: 14px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}


input:focus, textarea:focus, select:focus {
    border-color: #1a2a6c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 42, 108, 0.2);
}


textarea {
    min-height: 120px;
    resize: vertical;
}


.btn {
    background: linear-gradient(to right, #1a2a6c, #b21f1f);
    color: white;
    border: none;
    padding: 16px 30px;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


.btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}


.btn:active:not(:disabled) {
    transform: translateY(1px);
}


.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}


.image-preview {
    flex: 1;
    background: #f8f9ff;
    border-radius: 10px;
    border: 2px dashed #d0d8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    overflow: hidden;
    min-height: 300px;
    position: relative;
}


.image-preview img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}


.placeholder-text {
    text-align: center;
    color: #888;
    padding: 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.placeholder-text i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #d0d8ff;
}


.placeholder-text h3 {
    margin-bottom: 10px;
    color: #666;
}


.image-info {
    background: #f0f4ff;
    border-radius: 10px;
    padding: 20px;
    margin-top: auto;
}


.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e8ff;
}


.info-item:last-child {
    border-bottom: none;
}


.info-label {
    font-weight: 600;
    color: #1a2a6c;
}


.info-value {
    color: #555;
}


.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1a2a6c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


footer {
    text-align: center;
    color: white;
    padding: 30px 0;
    margin-top: 30px;
    font-size: 0.9rem;
    opacity: 0.8;
}


@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
   
    header h1 {
        font-size: 2.2rem;
    }
   
    .input-section, .preview-section {
        min-width: unset;
    }
}