/* General styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    text-align: center;
    max-width: 650px;
    min-width: 400px;
    width: 100%;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    overflow: hidden;
}

h1 {
    color: #373536;
    margin-bottom: 30px;
    font-size: 2.2em;
    font-weight: 600;
}

input[type="text"], select {
    padding: 15px;
    width: 90%;
    max-width: 500px;
    font-size: 16px;
    margin: 15px 0;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fafbfc;
}

input[type="text"]:focus, select:focus {
    outline: none;
    border-color: #f5be30;
    box-shadow: 0 0 0 3px rgba(245, 190, 48, 0.1);
}

/* Estilos para el panel de configuraciones */
#config-btn {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    margin-bottom: 20px;
    font-size: 14px;
    padding: 10px 20px;
}

#config-btn:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
}

.config-panel {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.config-panel.hidden {
    display: none;
}

.config-panel h3 {
    margin-top: 0;
    color: #373536;
    text-align: center;
    border-bottom: 2px solid #f5be30;
    padding-bottom: 10px;
}

.config-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.config-group label {
    font-weight: 600;
    color: #373536;
    min-width: 150px;
}

.config-group input, .config-group select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 120px;
}

.config-group input[type="color"] {
    width: 50px;
    height: 35px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.config-group input[type="range"] {
    width: 100px;
    margin-right: 10px;
}

.config-group span {
    font-weight: bold;
    color: #f5be30;
    min-width: 40px;
}

.config-panel button {
    margin: 10px 5px;
    padding: 10px 15px;
    font-size: 14px;
}

.config-panel button:first-of-type {
    background: linear-gradient(135deg, #28a745 0%, #20863a 100%);
}

.config-panel button:first-of-type:hover {
    background: linear-gradient(135deg, #20863a 0%, #1c7430 100%);
}

.config-panel button:last-of-type {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.config-panel button:last-of-type:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

/* Estilos para el mensaje flotante (toast notification) */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20863a 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    transform: translateX(100%);
    opacity: 0;
}

.toast-notification:not(.hidden) {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.success {
    background: linear-gradient(135deg, #28a745 0%, #20863a 100%);
}

.toast-notification.reset {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.toast-notification span {
    font-weight: 600;
    font-size: 14px;
}

button {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #f5be30 0%, #e6a82d 100%);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    margin: 15px 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 190, 48, 0.3);
}

button:hover {
    background: linear-gradient(135deg, #e6a82d 0%, #d19b26 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 190, 48, 0.4);
}

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

#qr-code {
    margin: 30px auto;
    width: 300px;
    height: 300px;
    max-width: calc(100vw - 100px);
    max-height: calc(100vh - 400px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#qr-code canvas {
    border-radius: 15px;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 10px;
        max-width: 95vw !important;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    input[type="text"], select {
        width: 95%;
        padding: 12px;
    }
    
    button {
        padding: 12px 20px;
        font-size: 14px;
        margin: 10px 5px;
    }
    
    #qr-code {
        max-width: calc(100vw - 80px) !important;
        max-height: calc(100vw - 80px) !important;
        width: auto;
        height: auto;
    }
}

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

.container {
    animation: fadeIn 0.6s ease-out;
}

/* Estilo para el placeholder */
input[type="text"]::placeholder {
    color: #a0a6b1;
    font-style: italic;
}
