/* QR Code Generator Frontend Styles */

.qrg-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.qrg-qr-wrapper {
    position: relative;
    margin-bottom: 20px;
}

/* Square Shape Styles */
.qrg-shape-square .qrg-border-outer {
    position: relative;
    background: linear-gradient(135deg, #0088cc 0%, #0066aa 50%, #004488 100%);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.qrg-square-text {
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    z-index: 2;
}

.qrg-text-top {
    font-family: Arial, sans-serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Circular Shape Styles */
.qrg-shape-circular .qrg-border-outer {
    position: relative;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #0088cc 0%, #0066aa 50%, #004488 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    padding: 20px;
    box-sizing: border-box;
}

.qrg-circular-text {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrg-text-path {
    width: 100%;
    height: 100%;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
}

/* QR Inner Container */
.qrg-qr-inner {
    position: relative;
    background: white;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrg-shape-circular .qrg-qr-inner {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: white;
}

.qrg-qr-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Brand Logo */
.qrg-logo-wrapper {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 5px;
    box-sizing: border-box;
}

.qrg-brand-logo {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
}

/* Brand Name */
.qrg-brand-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-top: 20px;
    font-family: Arial, sans-serif;
}

/* Editor Styles */
.qrg-editor {
    text-align: center;
    margin-top: 20px;
}

.qrg-edit-btn,
.qrg-download-btn {
    background: #0088cc;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s ease;
    margin: 5px;
}

.qrg-edit-btn:hover,
.qrg-download-btn:hover {
    background: #0066aa;
}

.qrg-editor-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrg-editor-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.qrg-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.qrg-close:hover {
    color: #000;
}

.qrg-editor-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0088cc;
    box-shadow: 0 0 5px rgba(0, 136, 204, 0.3);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.qrg-save-btn,
.qrg-cancel-btn,
.qrg-download-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.qrg-save-btn,
.qrg-download-btn {
    background: #0088cc;
    color: white;
}

.qrg-save-btn:hover,
.qrg-download-btn:hover {
    background: #0066aa;
}

.qrg-cancel-btn {
    background: #ddd;
    color: #333;
}

.qrg-cancel-btn:hover {
    background: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .qrg-shape-square .qrg-border-outer {
        padding: 25px;
    }

    .qrg-shape-circular .qrg-border-outer {
        width: 350px;
        height: 350px;
    }

    .qrg-shape-circular .qrg-qr-inner {
        width: 220px;
        height: 220px;
    }

    .qrg-logo-wrapper {
        width: 60px;
        height: 60px;
    }

    .qrg-editor-content {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .qrg-shape-circular .qrg-border-outer {
        width: 280px;
        height: 280px;
    }

    .qrg-shape-circular .qrg-qr-inner {
        width: 180px;
        height: 180px;
    }

    .form-actions {
        flex-direction: column;
    }
}
