:root {
    --bg-color: #f1f5f9;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --border-color: #e2e8f0;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.app-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}


/* Main Layout */
.generator-wrapper {
    width: 100%;
    display: flex;
    gap: 20px;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.settings-card {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.result-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    align-items: center;
    text-align: center;
}

h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 0.9rem;
}

h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

/* Form Elements */
.input-group {
    margin-bottom: 20px;
    width: 100%;
}

.input-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

textarea:focus {
    border-color: var(--primary-color);
}

.color-options {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.color-group {
    flex: 1;
}

input[type="color"] {
    width: 100%;
    height: 45px;
    padding: 2px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    background-color: white;
}

/* Buttons */
.btn-primary, .btn-secondary {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    margin-top: auto;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background-color: #f8fafc;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    margin-top: 25px;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* QR Container */
.qr-container {
    width: 256px;
    height: 256px;
    background-color: #f8fafc;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
}

.qr-container img {
    max-width: 100%;
    height: auto;
}

.placeholder-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 20px;
}

.desktop-only {
    display: flex;
}

@media (max-width: 1024px) {
    .desktop-only {
        display: none;
    }
}
