/**
 * BabyFace Generator CSS Styles
 */

/* Form styling */
#upload-form {
    width: 100%;
    box-sizing: border-box;
}

#upload-form table {
    width: 100%;
    border-collapse: collapse;
}

#upload-form td {
    padding: 10px;
    vertical-align: top;
}

#upload-form input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#upload-form input[type="number"] {
    width: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#upload-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

#upload-form button[type="submit"] {
    background-color: #e91e63;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#upload-form button[type="submit"]:hover {
    background-color: #c2185b;
}

/* Loading animation */
#loading-gif {
    text-align: center;
    margin: 20px 0;
}

#loading-gif img {
    max-width: 200px;
    height: auto;
}

/* Result display */
#result-image, #result-image1 {
    margin: 20px 0;
}

#result-image img {
    max-width: 100%;
    height: auto;
    border: 2px solid #e91e63;
    border-radius: 8px;
}

/* Image preview */
#preImage1, #preImage2 {
    margin-top: 10px;
}

#preImage1 img, #preImage2 img {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px;
}

/* Radio buttons */
input[type="radio"] {
    margin-right: 5px;
}

/* Links */
a {
    color: #e91e63;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    #upload-form {
        padding: 1px;
        margin:1px;
    }
    
    #upload-form table {
        font-size: 14px;
        display: block;
    }
    
    #upload-form tbody {
        display: block;
    }
    
    #upload-form tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
    }
    
    #upload-form td {
        display: block;
        padding: 5px 0;
        text-align: left;
    }
    
    #upload-form td:first-child {
        font-weight: bold;
        margin-bottom: 5px;
    }
    
    #upload-form input[type="file"] {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }
    
    #upload-form input[type="number"] {
        width: 100%;
        padding: 10px;
    }
    
    #upload-form textarea {
        width: 100%;
        min-height: 80px;
        padding: 10px;
        font-size: 14px;
    }
    
    #upload-form button[type="submit"] {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        margin-top: 10px;
    }
    
    #loading-gif img {
        max-width: 150px;
    }
    
    #result-image img {
        max-width: 100%;
        margin: 10px 0;
    }
    
    #preImage1 img, #preImage2 img {
        max-width: 100%;
        height: auto;
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    #upload-form {
        padding: 1px;
        margin: 1px;
    }
    
    #upload-form tr {
        padding: 8px;
        margin-bottom: 10px;
    }
    
    #upload-form input[type="file"],
    #upload-form input[type="number"],
    #upload-form textarea {
        padding: 8px;
        font-size: 13px;
    }
    
    #upload-form button[type="submit"] {
        padding: 12px;
        font-size: 15px;
    }
    
    #loading-gif img {
        max-width: 120px;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    #upload-form {
        padding: 5px;
    }
    
    #upload-form tr {
        padding: 5px;
        margin-bottom: 8px;
    }
    
    #upload-form textarea {
        min-height: 60px;
    }
}

/* Error messages */
.error-message {
    color: #d32f2f;
    background-color: #ffebee;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    border-left: 4px solid #d32f2f;
}

/* Success messages */
.success-message {
    color: #2e7d32;
    background-color: #e8f5e8;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    border-left: 4px solid #2e7d32;
}

/* Insufficient points message */
.insufficient-points {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    border: 2px solid #ff6b6b;
    border-radius: 8px;
    background-color: #fff5f5;
}

.insufficient-points h4 {
    color: #ff6b6b;
    margin-bottom: 15px;
}

.insufficient-points p {
    margin-bottom: 15px;
}

.insufficient-points .recharge-button {
    background-color: #ff6b6b;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    display: inline-block;
    margin-bottom: 15px;
}

.insufficient-points .countdown-text {
    color: #666;
    font-size: 14px;
}

/* Mobile responsive for insufficient points */
@media (max-width: 768px) {
    .insufficient-points {
        margin: 10px;
        padding: 15px;
    }
    
    .insufficient-points h4 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .insufficient-points p {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .insufficient-points .recharge-button {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        text-align: center;
        box-sizing: border-box;
    }
    
    .insufficient-points .countdown-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .insufficient-points {
        margin: 5px;
        padding: 10px;
    }
    
    .insufficient-points h4 {
        font-size: 16px;
    }
    
    .insufficient-points p {
        font-size: 13px;
    }
    
    .insufficient-points .recharge-button {
        padding: 12px;
        font-size: 15px;
    }
}
