/**
 * Public styles for Math QR Generator
 */

.math-qr-generator-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 1000px;
    margin: 0 auto;
}

.math-qr-generator-form {
    flex: 1;
    min-width: 300px;
}

.math-qr-generator-output {
    flex: 1;
    min-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.math-qr-form-group {
    margin-bottom: 20px;
}

.math-qr-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.math-qr-form-group-half {
    flex: 1;
    min-width: 200px;
}

.math-qr-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.math-qr-form-group input[type="url"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.math-qr-accordion {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.math-qr-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #f9f9f9;
    cursor: pointer;
}

.math-qr-accordion-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.math-qr-accordion-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.math-qr-accordion-content {
    padding: 15px;
    border-top: 1px solid #ddd;
}

.math-qr-frame-options,
.math-qr-logo-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.math-qr-frame-option,
.math-qr-logo-option {
    position: relative;
    cursor: pointer;
}

.math-qr-frame-option input,
.math-qr-logo-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.math-qr-frame-preview,
.math-qr-logo-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    transition: all 0.3s ease;
}

#math-qr-public-preview-image img {
    width: 300px;
    height: 300px;
    padding: 2em 0em;
}

.math-qr-frame-option input:checked + .math-qr-frame-preview,
.math-qr-logo-option input:checked + .math-qr-logo-preview {
    border-color: #00a0d2;
    box-shadow: 0 0 0 2px rgba(0, 160, 210, 0.3);
}

.math-qr-frame-preview.square {
    background-image: url('../images/frame-square.svg');
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
}

.math-qr-frame-preview.rounded {
    background-image: url('../images/frame-rounded.svg');
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
}

.math-qr-logo-preview.none {
    background-image: url('../images/logo-none.svg');
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
}

.math-qr-logo-preview.scan-me {
    background-image: url('../images/scan-me.svg');
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
}

.math-qr-logo-preview.escaneie-me {
    background-image: url('../images/escaneie-me.svg');
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
}

.math-qr-logo-preview.escaneame {
    background-image: url('../images/escaneame.svg');
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
}

.math-qr-logo-preview.live {
    background-image: url('../images/live.svg');
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
}

.math-qr-logo-preview.custom {
    font-size: 10px;
    text-align: center;
    padding: 5px;
    line-height: 1.2;
}

.math-qr-color-options {
    display: flex;
    gap: 20px;
}

.math-qr-color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.math-qr-color-option input[type="color"] {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.math-qr-form-actions {
    margin-top: 30px;
    text-align: center;
}

.math-qr-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.math-qr-button-primary {
    background-color: #00a0d2;
    color: #fff;
}

.math-qr-button-primary:hover {
    background-color: #0088b9;
}

.math-qr-button-download {
    background-color: #00a0d2;
    color: #fff;
    margin: 5px;
    min-width: 120px;
}

.math-qr-button-outline {
    background-color: transparent;
    border: 1px solid #00a0d2;
    color: #00a0d2;
}

.math-qr-button-subtext {
    font-size: 12px;
    opacity: 0.8;
}

#math-qr-public-preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 300px;
    background-color: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
}

#math-qr-public-preview-placeholder {
    text-align: center;
    color: #888;
}

.math-qr-output-image {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
    text-align: center;
}

.math-qr-output-image img {
    max-width: 100%;
    height: auto;
}

.math-qr-output-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* Notificaciones */
.math-qr-notification {
    position: relative;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
    width: 100%;
}

.math-qr-notification-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.math-qr-notification-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    .math-qr-form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .math-qr-color-options {
        justify-content: center;
    }
}
