:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --background: #f9f9f9;
    --text-color: #333;
    --border-color: #ddd;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
    padding-bottom: 60px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input[type="url"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.frame-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.frame-option {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.frame-option:hover {
    border-color: var(--primary-color);
}

.frame-option input {
    display: none;
}

.frame-option input:checked + img {
    border: 3px solid var(--primary-color);
}

.frame-option img {
    width: 100%;
    height: auto;
    border: 3px solid transparent;
    border-radius: 4px;
    margin-bottom: 8px;
}

.frame-option span {
    display: block;
    text-align: center;
    font-weight: 500;
}

.btn-generate {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.btn-generate:hover {
    background-color: var(--secondary-color);
}

.btn-generate:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

#result {
    margin-top: 30px;
    text-align: center;
}

#preview-container {
    margin: 20px 0;
    padding: 10px;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    background: white;
}

#preview-image {
    max-width: 100%;
    height: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-download {
    display: inline-block;
    background-color: #2ecc71;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
}

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

.hidden {
    display: none;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 15px 0;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}