/* 
* @Author: Zhang Ryan
* @Date: 2025-08-08 21:37:46
* @LastEditors: Zhang Ryan
* @Email: ryanzhang@bytesycn.com
* @LastEditTime: 2025-10-07 08:24:42
* @FilePath: \styles.css
* @Description: 
* 
* Copyright (c) 2025 by RyanZhang, All Rights Reserved. 
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background: #f5f7fa;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

/* Container */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Card */
.glass-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.glass-card h1 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.glass-card p {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* File upload */
.file-upload {
    position: relative;
    margin-bottom: 20px;
}

.custom-file-upload {
    display: block;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 0.9rem;
    text-align: center;
}

.custom-file-upload:hover {
    background-color: #2980b9;
}

input[type="file"] {
    display: none;
}

.file-preview {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #7f8c8d;
}

/* Style selection */
.style-selection {
    margin-bottom: 20px;
    text-align: left;
}

.style-selection label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #2c3e50;
}

.style-selection select {
    width: 100%;
    padding: 10px;
    font-size: 0.9rem;
    border-radius: 4px;
    border: 1px solid #bdc3c7;
    background: #ffffff;
    color: #2c3e50;
}

/* Style preview */
.style-preview {
    margin-top: 20px;
    padding: 15px;
    background: #ecf0f1;
    border-radius: 4px;
    border: 1px solid #d5dbdb;
    font-size: 0.85rem;
    color: #2c3e50;
    text-align: left;
}

.style-preview p {
    margin-bottom: 10px;
    font-weight: 500;
}

.style-preview pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Roboto', sans-serif;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Submit button */
.submit-btn {
    background: #2ecc71;
    color: white;
    padding: 12px;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    font-weight: 500;
}

.submit-btn:hover {
    background: #27ae60;
}

/* Download link */
.download-link {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: #3498db;
    font-size: 0.9rem;
}

.download-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .glass-card {
        padding: 20px;
    }
}