/* Header styling */
.header {
    background-color: #f8f9fc;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header .logo img {
    width: 40px;
    height: 40px;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #0078d7;
    margin: 0;
}

.header p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}

/* Updated card design */
.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Frame options grid */
.frame-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 1rem;
}

/* Download button */
.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    font-weight: bold;
    color: #ffffff;
    background-color: #0078d7;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.download-btn:hover {
    background-color: #005fa3;
    transform: translateY(-2px);
}

/* Background styling */
body {
    background: linear-gradient(135deg, #f4f6fa, #d9e4f5);
}

/* Modern card-based layout inspired by your screenshot */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f6fa;
    margin: 0;
    padding: 0;
    color: #222;
    font-size: 16px;
    line-height: 1.6;
}
.wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 2rem 0;
    gap: 2.5rem;
}
.left-panel {
    flex: 1 1 420px;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 2rem;
    margin-bottom: 0.5rem;
}
.card h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    letter-spacing: 0.2px;
}
.input-group {
    margin-bottom: 1.2rem;
}
.input-group label {
    font-weight: 500;
    margin-bottom: 0.3rem;
    display: block;
}
.input-group input, .input-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #d0d4db;
    border-radius: 6px;
    font-size: 1rem;
    background: #f9fafb;
    transition: border 0.2s;
    box-sizing: border-box;
}
.input-group textarea {
    min-height: 60px;
    resize: vertical;
}
.input-group input:focus, .input-group textarea:focus {
    border: 1.5px solid #0078d7;
    outline: none;
    background: #fff;
}
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 1rem 0 0.5rem 0;
}
.toggle-switch input[type="checkbox"] {
    width: 0;
    height: 0;
    opacity: 0;
}
.toggle-slider {
    width: 40px;
    height: 22px;
    background: #d0d4db;
    border-radius: 22px;
    position: relative;
    transition: background 0.2s;
    cursor: pointer;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-slider {
    background: #0078d7;
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(18px);
}
.toggle-label {
    font-size: 1rem;
    font-weight: 500;
}
.tabs {
    display: flex;
    border-bottom: 1.5px solid #e0e3e8;
    margin-bottom: 1.2rem;
    gap: 1.5rem;
}
.tab {
    padding: 0.5rem 1.2rem 0.5rem 1.2rem;
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    font-size: 1rem;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: border 0.18s, color 0.18s;
}
.tab.active {
    border-bottom: 2.5px solid #0078d7;
    color: #0078d7;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.right-panel {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0.5rem;
}
.qr-preview {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    min-width: 180px;
}
.download-controls {
    width: 100%;
    margin-top: 0.6rem;
}
.download-controls label {
    font-size: 0.95rem;
}
.download-controls select, .download-controls input[type="number"] {
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #d0d4db;
    background: #fff;
}
.download-btn {
    width: 100%;
    padding: 0.9rem 0;
    font-size: 1.08rem;
    border: none;
    border-radius: 6px;
    background: #e6e9ef;
    color: #222;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 0.5rem;
    transition: background 0.18s, color 0.18s;
    display: flex;
    align-items: center;
    .frame-option img {
        display: block;
        max-width: 32px;
        max-height: 32px;
        margin: auto;
    }
    justify-content: center;
    gap: 0.7rem;
}
.download-btn.primary {
    background: #0078d7;
    color: #fff;
}
.download-btn:active {
    background: #005fa3;
}
.download-btn:hover {
    background: #005fa3;
    color: #fff;
}
/* Smooth transitions for interactive elements */
button, .tab, .frame-option {
    transition: all 0.3s ease;
}
/* Hover effects for tabs */
.tab:hover {
    color: #005fa3;
}
/* Hover effects for frame options */
.frame-option:hover {
    border-color: #005fa3;
    box-shadow: 0 4px 12px rgba(0, 120, 215, 0.2);
}
@media (max-width: 900px) {
    .wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .right-panel {
        flex: none;
        margin: 2rem auto 0 auto;
    }
}
@media (max-width: 600px) {
    .wrapper {
        flex-direction: column;
        padding: 1rem;
    }

    .left-panel, .right-panel {
        max-width: 100%;
    }

    .card {
        padding: 1.5rem;
    }
}
/* Enhanced button design */
button {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Accessibility improvements */
:focus {
    outline: 2px solid #0078d7;
    outline-offset: 2px;
}

/* Refined responsiveness */
@media (max-width: 480px) {
    .tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tab {
        flex: 1 1 auto;
        text-align: center;
    }

    .qr-preview {
        min-height: 150px;
        min-width: 150px;
    }
}
