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

:root {
    --primary: #3a86ff;
    --primary-dark: #2667cc;
    --secondary: #8338ec;
    --accent: #ff006e;
    --light: #ffffff;
    --dark: #1a1a2e;
    --gray: #f8f9fa;
    --gray-dark: #e9ecef;
    --success: #38b000;
    --error: #d90429;
    --warning: #ffbe0b;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #0f0f1e;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
.hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.stars {
    background: #000 url('https://i.imgur.com/YKY28eT.png') repeat top center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -2;
}

.twinkling {
    background: transparent url('https://i.imgur.com/XYMF4ca.png') repeat top center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -1;
    animation: move-twink-back 200s linear infinite;
}

@keyframes move-twink-back {
    from {background-position: 0 0;}
    to {background-position: -10000px 5000px;}
}

/* Header */
header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
}

.logo i {
    color: var(--primary);
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Intro Section */
.intro {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--light);
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    width: 250px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.feature h3 {
    margin-bottom: 0.5rem;
    color: var(--light);
}

.feature p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Generator Card */
.generator-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    text-align: center;
}

.generator-card h2 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.generator-card > p {
    color: #666;
    margin-bottom: 2rem;
}

/* Form Styles */
.form-container {
    max-width: 500px;
    margin: 0 auto 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

input[type="text"] {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 2px solid var(--gray-dark);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

input[type="text"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
    outline: none;
}

input[type="text"]::placeholder {
    color: #aaa;
}

/* Button Styles */
button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
}

button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 134, 255, 0.3);
}

button:active {
    transform: translateY(0);
}

.pulse-btn {
    position: relative;
}

.pulse-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background-color: var(--primary);
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Status Container */
.status-container {
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.status-container.loading {
    background-color: var(--gray);
    border-left: 4px solid var(--primary);
    color: var(--dark);
}

.status-container.success {
    background-color: rgba(56, 176, 0, 0.1);
    border-left: 4px solid var(--success);
    color: var(--success);
}

.status-container.error {
    background-color: rgba(217, 4, 41, 0.1);
    border-left: 4px solid var(--error);
    color: var(--error);
}

.hidden {
    display: none;
}

/* Result Container */
.result-container {
    margin-top: 2rem;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-dark);
    gap: 0.5rem;
}

.tab-btn {
    background-color: transparent;
    color: #666;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: none;
}

.tab-btn:hover {
    background-color: var(--gray);
    color: var(--dark);
    box-shadow: none;
    transform: none;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
    background-color: transparent;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

/* Config Display */
pre {
    background-color: var(--dark);
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-btn {
    background-color: var(--success);
    margin: 0 auto;
    display: flex;
}

.download-btn:hover {
    background-color: #2d9000;
    box-shadow: 0 4px 12px rgba(56, 176, 0, 0.3);
}

/* QR Code */
#qrcode {
    text-align: center;
    margin: 1.5rem 0;
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    display: inline-block;
}

#qrcode img {
    margin: 0 auto;
    max-width: 100%;
}

.qr-help {
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Footer */
footer {
    background-color: rgba(26, 26, 46, 0.95);
    color: var(--light);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 1.5rem;
}

footer h3 {
    color: var(--light);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.coffee-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #FFDD00;
    color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.coffee-btn:hover {
    background-color: #FFE44D;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 221, 0, 0.3);
}

.donation-cta {
    margin-top: 1.5rem;
    text-align: center;
    animation: fadeIn 1s;
}

.donation-cta .coffee-btn {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    background: #FFDD00;
    color: #000;
    border-radius: 8px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255,221,0,0.15);
    transition: background 0.2s;
}

.donation-cta .coffee-btn:hover {
    background: #ffe44d;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Support banner (verplaatste donatie sectie) */
.support-banner {
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.2), rgba(131, 56, 236, 0.2));
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem auto 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    max-width: 800px;
}

.support-banner h3 {
    color: var(--light);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.support-banner p {
    color: var(--light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.support-banner .coffee-btn {
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    transform: scale(1.05);
}

/* Verbeterde stijl voor locatie labels */
.location-title {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--light);
    text-shadow: 0 0 10px rgba(58, 134, 255, 0.5);
    letter-spacing: 0.5px;
}

.location-description {
    display: block;
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.5;
    font-weight: 400;
}

.location-label {
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.location-label i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.location-label:hover {
    background-color: rgba(58, 134, 255, 0.15);
    transform: translateY(-3px);
}

input[type="radio"]:checked + .location-label {
    background-color: rgba(58, 134, 255, 0.2);
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(58, 134, 255, 0.3);
}

/* Aanpassing footer nu Connect sectie is verwijderd */
.footer-content {
    grid-template-columns: 1fr;
    text-align: center;
}

footer h3::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Responsive aanpassingen voor support banner */
@media (max-width: 768px) {
    .support-banner {
        padding: 1.5rem;
        margin: 2rem auto 1rem;
    }
    
    .support-banner h3 {
        font-size: 1.3rem;
    }
    
    .support-banner p {
        font-size: 1rem;
    }
    
    .location-title {
        font-size: 1.2rem;
    }
    
    .location-description {
        font-size: 0.9rem;
    }
}

.location-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.location-option {
    position: relative;
}

.location-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.location-label {
    display: flex;
    flex-direction: column;
    padding: 1.2rem;
    border-radius: 12px;
    border: 2px solid var(--gray-dark);
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-label i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.location-label span {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.location-label small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.location-option input[type="radio"]:checked + .location-label {
    border-color: var(--primary);
    background-color: rgba(58, 134, 255, 0.1);
    box-shadow: 0 0 15px rgba(58, 134, 255, 0.3);
}

/* Voorwaarden checkbox */
.terms-container {
    margin-bottom: 1.5rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.terms-label {
    font-size: 0.9rem;
    color: var(--light);
}

.terms-label a {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
}

/* Modal voor voorwaarden */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--dark);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close {
    color: var(--light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: var(--primary);
}

.terms-text {
    margin: 1.5rem 0;
    color: var(--light);
    line-height: 1.6;
}

.terms-text p {
    margin-bottom: 1rem;
}

.terms-text ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.terms-text li {
    margin-bottom: 0.5rem;
}

#accept-terms {
    display: block;
    margin: 1.5rem auto 0;
}

/* Responsive aanpassingen */
@media (min-width: 768px) {
    .location-options {
        flex-direction: row;
    }
    
    .location-option {
        flex: 1;
    }
}

/* Zorg dat tekst in de generator-card goed leesbaar is */
.generator-card,
.generator-card label,
.generator-card input,
.generator-card .form-group,
.generator-card .tab-btn,
.generator-card .tab-pane,
.generator-card .terms-label,
.generator-card .location-label,
.generator-card .location-title,
.generator-card .location-description {
    color: var(--dark) !important;
}

/* Verbeterde stijl voor locatie labels */
.location-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--primary);
}

.location-description {
    display: block;
    font-size: 0.9rem;
    color: black;
    line-height: 1.4;
}

.location-label {
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.location-label:hover {
    background-color: rgba(58, 134, 255, 0.1);
}

input[type="radio"]:checked + .location-label {
    background-color: rgba(58, 134, 255, 0.15);
    border-left: 3px solid var(--primary);
}

/* Stijl voor ongeldige input */
input:invalid {
    border-color: var(--error);
    background-color: rgba(217, 4, 41, 0.05);
}

input:invalid + .input-wrapper i {
    color: var(--error);
}

.top-banner {
    background: #FFDD00;
    color: #222;
    text-align: center;
    padding: 0.7rem 0;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}
.top-banner .coffee-link {
    color: #e67e22;
    font-weight: bold;
    text-decoration: underline;
}
.top-banner .coffee-link:hover {
    color: #ff006e;
}