/* Theme Variables */
:root {
    --primary-color: #0891b2;  /* Modern cyan */
    --secondary-color: #06b6d4;
    --text-color: #0f172a;     /* Slate 900 */
    --bg-color: #f8fafc;       /* Slate 50 */
    --container-bg: #ffffff;
    --input-border: #e2e8f0;   /* Slate 200 */
    --shadow-color: rgba(8, 145, 178, 0.08);
    --warning-bg: #fef2f2;
    --warning-color: #dc2626;
    --hover-color: #0e7490;    /* Darker cyan */
}

/* Dark Theme Colors */
[data-theme="dark"] {
    --primary-color: #3b82f6;
    --secondary-color: #60a5fa;
    --text-color: #f3f4f6;
    --bg-color: #111827;
    --container-bg: #1f2937;
    --input-border: #374151;
    --shadow-color: rgba(0, 0, 0, 0.25);
    --warning-bg: #451a1a;
    --warning-color: #f87171;
    --hover-color: #2563eb;
    --qr-dark: #000000;    /* New variable for QR code dark color */
    --qr-light: #ffffff;   /* New variable for QR code light color */
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 70px;
}

/* Header Styles */
header {
    background: var(--container-bg);
    box-shadow: 0 1px 3px var(--shadow-color);
    padding: 1rem 2rem;
    backdrop-filter: blur(8px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Theme Toggle Switch */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: .3s ease-in-out;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s ease-in-out;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Main Content */
main.container {
    background: var(--container-bg);
    max-width: 500px;
    width: 90%;
    margin: 1.5rem auto;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px var(--shadow-color), 
                0 2px 4px -2px var(--shadow-color);
    text-align: center;
    flex: 1;
}

h1 {
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Form Elements */
.option-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.option-group label {
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--container-bg);
    color: var(--text-color);
    transition: all 0.2s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
    resize: vertical;
    max-height: 200px;
}

button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.875rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button:hover {
    background: var(--hover-color);
    transform: translateY(-1px);
}

/* QR Code Container */
#qrcode {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    display: none;
    box-shadow: 0 4px 6px -1px var(--shadow-color);
}

#qrcode img {
    background: #ffffff;
    padding: 8px;
    border-radius: 8px;
}

/* Add this class to show the QR code when generated */
#qrcode.show {
    display: inline-block;
}

/* Warning Message */
.warning {
    background: var(--warning-bg);
    color: var(--warning-color);
    padding: 10px 15px;
    border: 1px solid var(--warning-color);
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
    text-align: left;
}

/* Footer */
footer {
    background: var(--container-bg);
    padding: 1.5rem;
    margin-top: auto;
    box-shadow: 0 -2px 10px var(--shadow-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Add responsive styles */
@media (max-width: 768px) {
    main.container {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem auto;
    }

    .option-group {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    header {
        padding: 0.75rem 1rem;
    }

    .logo span {
        font-size: 1.2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    body {
        padding-top: 60px;
    }
}

@media (max-width: 480px) {
    main.container {
        padding: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .input-group input,
    .input-group textarea {
        padding: 0.625rem;
    }

    button {
        padding: 0.75rem;
    }

    .option-group {
        grid-template-columns: 1fr;
    }
}

/* Add styles for better form responsiveness */
.form-section {
    width: 100%;
}

.input-group {
    width: 100%;
}

.input-group input,
.input-group textarea {
    max-width: 100%;
    box-sizing: border-box;
}

/* Add styles for the download button */
.secondary-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    margin-top: 1rem;
}

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

/* Style for UPI form */
#form-upi .input-group input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

#form-upi .input-group input[type="number"]::-webkit-outer-spin-button,
#form-upi .input-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Theme Variables */
:root {
    --primary-color: #0891b2;  /* Modern cyan */
    --secondary-color: #06b6d4;
    --text-color: #0f172a;     /* Slate 900 */
    --bg-color: #f8fafc;       /* Slate 50 */
    --container-bg: #ffffff;
    --input-border: #e2e8f0;   /* Slate 200 */
    --shadow-color: rgba(8, 145, 178, 0.08);
    --warning-bg: #fef2f2;
    --warning-color: #dc2626;
    --hover-color: #0e7490;    /* Darker cyan */
}

/* Dark Theme Colors */
[data-theme="dark"] {
    --primary-color: #3b82f6;
    --secondary-color: #60a5fa;
    --text-color: #f3f4f6;
    --bg-color: #111827;
    --container-bg: #1f2937;
    --input-border: #374151;
    --shadow-color: rgba(0, 0, 0, 0.25);
    --warning-bg: #451a1a;
    --warning-color: #f87171;
    --hover-color: #2563eb;
    --qr-dark: #000000;    /* New variable for QR code dark color */
    --qr-light: #ffffff;   /* New variable for QR code light color */
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 70px;
}

/* Header Styles */
header {
    background: var(--container-bg);
    box-shadow: 0 1px 3px var(--shadow-color);
    padding: 1rem 2rem;
    backdrop-filter: blur(8px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Theme Toggle Switch */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: .3s ease-in-out;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s ease-in-out;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Main Content */
main.container {
    background: var(--container-bg);
    max-width: 500px;
    width: 90%;
    margin: 1.5rem auto;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px var(--shadow-color), 
                0 2px 4px -2px var(--shadow-color);
    text-align: center;
    flex: 1;
}

h1 {
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Form Elements */
.option-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.option-group label {
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--container-bg);
    color: var(--text-color);
    transition: all 0.2s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
    resize: vertical;
    max-height: 200px;
}

button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.875rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button:hover {
    background: var(--hover-color);
    transform: translateY(-1px);
}

/* QR Code Container */
#qrcode {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    display: none;
    box-shadow: 0 4px 6px -1px var(--shadow-color);
}

#qrcode img {
    background: #ffffff;
    padding: 8px;
    border-radius: 8px;
}

/* Add this class to show the QR code when generated */
#qrcode.show {
    display: inline-block;
}

/* Warning Message */
.warning {
    background: var(--warning-bg);
    color: var(--warning-color);
    padding: 10px 15px;
    border: 1px solid var(--warning-color);
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
    text-align: left;
}

/* Footer */
footer {
    background: var(--container-bg);
    padding: 1.5rem;
    margin-top: auto;
    box-shadow: 0 -2px 10px var(--shadow-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Add responsive styles */
@media (max-width: 768px) {
    main.container {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem auto;
    }

    .option-group {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    header {
        padding: 0.75rem 1rem;
    }

    .logo span {
        font-size: 1.2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    body {
        padding-top: 60px;
    }
}

@media (max-width: 480px) {
    main.container {
        padding: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .input-group input,
    .input-group textarea {
        padding: 0.625rem;
    }

    button {
        padding: 0.75rem;
    }

    .option-group {
        grid-template-columns: 1fr;
    }
}

/* Add styles for better form responsiveness */
.form-section {
    width: 100%;
}

.input-group {
    width: 100%;
}

.input-group input,
.input-group textarea {
    max-width: 100%;
    box-sizing: border-box;
}

/* Add styles for the download button */
.secondary-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    margin-top: 1rem;
}

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

/* Style for UPI form */
#form-upi .input-group input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

#form-upi .input-group input[type="number"]::-webkit-outer-spin-button,
#form-upi .input-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}