/* Estilos gerais */
html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
}

.container {
    text-align: center;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    width: 100%;
}

h1 {
    margin-bottom: 20px;
    font-size: 2.5em;
    color: #333;
    font-weight: 700;
}

h2 {
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #555;
    font-weight: 400;
}

.selector {
    margin-bottom: 20px;
}

#qrcodeTypeSelector {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    margin: 15px;
    font-size: 24px;
    color: #333;
}

.icon i {
    font-size: 50px;
    color: #4CAF50;
}

.icon span {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 500;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

label {
    margin-top: 12px;
    display: block;
    font-size: 16px;
    color: #666;
}

input, select {
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    font-size: 16px;
}

.whatsapp-row, .vcard-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    width: 100%;
}

.whatsapp-row input, .vcard-row input {
    width: calc(50% - 10px);
}

.whatsapp-row label, .vcard-row label {
    width: calc(50% - 10px);
}

.qrcode-container {
    margin-bottom: 20px;
    text-align: center;
}

.qrcode-container img {
    display: block;
    margin: 0 auto;
}

.button-container {
    margin-top: 20px;
    margin-bottom: 40px;
}

button {
    padding: 12px 24px;
    margin-top: 20px;
    border: none;
    border-radius: 8px;
    background-color: #4CAF50;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

#downloadBtn {
    display: block;
    margin: 0 auto;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background-color: #4CAF50;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#downloadBtn:hover {
    background-color: #45a049;
}

footer {
    margin-top: auto;
    text-align: center;
    padding: 10px;
    background-color: #858585;
    border-top: 1px solid #ddd;
    width: 100%;
    font-size: 14px;
    color: #1d1d1d;
}

/* Media Queries */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.2em;
    }

    .icon i {
        font-size: 40px;
    }

    .icon span {
        font-size: 14px;
    }

    input, select {
        padding: 10px;
        font-size: 14px;
    }

    .whatsapp-row input, .vcard-row input {
        width: calc(100% - 10px);
        margin-bottom: 10px;
    }

    .whatsapp-row label, .vcard-row label {
        width: calc(100% - 10px);
    }

    button {
        font-size: 16px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1em;
    }

    .icon i {
        font-size: 30px;
    }

    .icon span {
        font-size: 12px;
    }

    input, select {
        padding: 8px;
        font-size: 12px;
    }

    button {
        font-size: 14px;
        padding: 8px 16px;
    }
}
