/* =================================================================
   QR CODE GENERATOR FRONTEND STYLES
   ================================================================= */

/* =================================================================
   RESET AND BASE STYLES
   ================================================================= */
.qrcg-container * {
    box-sizing: border-box;
}

.qrcg-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* =================================================================
   ALERTS AND MESSAGES
   ================================================================= */
.qrcg-notice {
    padding: 12px 15px;
    margin: 20px 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.qrcg-notice.success {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.qrcg-notice.error {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.qrcg-notice.warning {
    background: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.qrcg-notice.info {
    background: #d1ecf1;
    border-left-color: #17a2b8;
    color: #0c5460;
}

/* QR Creation Form Alerts */
.qrcg-alert {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.qrcg-alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.qrcg-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* =================================================================
   MEMORIAL EDITOR LAYOUT
   ================================================================= */
.qrcg-memorial-editor-container {
    display: flex;
    gap: 30px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.qrcg-editor-sidebar {
    flex: 0 0 300px;
    background: #f5f5f5;
    padding: 25px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.qrcg-editor-main-content {
    flex: 1;
    max-width: 1400px;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Override theme container constraints for memorial editor page */
.page-template-default .qrcg-memorial-editor-container {
    max-width: calc(100vw - 40px);
}

/* If inside a theme container, break out */
.site-container .qrcg-memorial-editor-container,
.content-container .qrcg-memorial-editor-container,
.entry-content .qrcg-memorial-editor-container {
    margin-left: calc(50% - 50vw + 20px);
    margin-right: calc(50% - 50vw + 20px);
    max-width: calc(100vw - 40px);
}

/* Sidebar Navigation */
.qrcg-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.qrcg-sidebar-nav .nav-item {
    margin-bottom: 5px;
}

.qrcg-sidebar-nav .nav-item a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.qrcg-sidebar-nav .nav-item.active a,
.qrcg-sidebar-nav .nav-item a:hover {
    background: #007cba;
    color: white;
}

/* Content Sections */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Form Styling */
.qrcg-form-group {
    margin-bottom: 20px;
}

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

.qrcg-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.qrcg-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0,124,186,0.1);
}

textarea.qrcg-input {
    resize: vertical;
    min-height: 100px;
}

/* Grid Layouts */
.qrcg-grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Buttons */
.qrcg-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.qrcg-btn-primary {
    background: #007cba;
    color: white;
}

.qrcg-btn-primary:hover {
    background: #005a87;
}

.qrcg-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.qrcg-btn-secondary:hover {
    background: #e0e0e0;
}

.qrcg-btn-danger {
    background: #dc3545;
    color: white;
}

.qrcg-btn-full {
    width: 100%;
}

/* Timeline Events */
.timeline-events-list {
    margin-top: 20px;
}

.timeline-event-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 10px;
}

.timeline-event-item .event-icon {
    font-size: 24px;
    margin-right: 15px;
}

.timeline-event-item .event-details {
    flex: 1;
}

.timeline-event-item .remove-timeline-event {
    background: #dc3545;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

/* Gallery */
#gallery-image-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-image-item {
    position: relative;
    aspect-ratio: 1;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.gallery-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-image-item .remove-gallery-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

/* Modal */
.qrcg-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.qrcg-modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.qrcg-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    color: #999;
}

.qrcg-modal-close:hover {
    color: #333;
}

/* Icon Picker */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.icon-grid span {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.icon-grid span:hover {
    background: #007cba;
    border-color: #007cba;
}

/* Responsive */
@media (max-width: 768px) {
    .qrcg-memorial-editor-container {
        flex-direction: column;
    }
    
    .qrcg-editor-sidebar {
        flex: none;
        width: 100%;
        position: static;
    }
    
    .qrcg-grid-2-col {
        grid-template-columns: 1fr;
    }
    
    .icon-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =================================================================
   MEMORIAL LANDING PAGE
   ================================================================= */
.memorial-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
}

.memorial-header {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.memorial-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.memorial-profile {
    position: relative;
    z-index: 2;
}

.memorial-profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    margin-bottom: 20px;
    object-fit: cover;
}

.memorial-name {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.memorial-dates {
    font-size: 1.2em;
    opacity: 0.95;
}

.memorial-container {
    max-width: 1000px;
    margin: -50px auto 0;
    padding: 0 20px 40px;
    position: relative;
    z-index: 1;
}

.memorial-nav {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.memorial-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.memorial-nav li {
    flex: 1;
}

.memorial-nav a {
    display: block;
    padding: 20px;
    text-align: center;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.memorial-nav a:hover,
.memorial-nav a.active {
    background: #f8f9fa;
    border-bottom-color: #667eea;
    color: #667eea;
}

.memorial-section {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.memorial-section h2 {
    color: #333;
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.life-story {
    line-height: 1.8;
    color: #555;
    white-space: pre-wrap;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.timeline-event {
    position: relative;
    margin-bottom: 30px;
}

.timeline-event-icon {
    position: absolute;
    left: -25px;
    width: 30px;
    height: 30px;
    background: white;
    border: 3px solid #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.timeline-event-content {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.timeline-event-date {
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.timeline-event-title {
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: 5px;
}

.timeline-event-description {
    color: #666;
    line-height: 1.6;
}

/* Gallery */
.memorial-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.memorial-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.memorial-gallery img:hover {
    transform: scale(1.05);
}

/* Tributes */
.tribute-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.tribute-form input,
.tribute-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.tribute-form button {
    background: #667eea;
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.tribute-form button:hover {
    background: #5a67d8;
}

.tribute-item {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.tribute-item:last-child {
    border-bottom: none;
}

.tribute-author {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.tribute-date {
    color: #999;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.tribute-message {
    color: #555;
    line-height: 1.6;
}

/* Responsive for memorial landing */
@media (max-width: 768px) {
    .memorial-header {
        height: 300px;
    }
    
    .memorial-name {
        font-size: 1.8em;
    }
    
    .memorial-nav ul {
        flex-direction: column;
    }
    
    .memorial-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* =================================================================
   OTHER PAGES - FORMS, MY QR CODES, ETC
   ================================================================= */
.qrcg-activation-container,
.qrcg-my-codes-container,
.qrcg-create-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.qrcg-form-section {
    margin-bottom: 30px;
}

.qrcg-form-row {
    margin-bottom: 20px;
}

.qrcg-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.qrcg-form-row input,
.qrcg-form-row select,
.qrcg-form-row textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.qrcg-form-actions {
    margin-top: 30px;
}

.qrcg-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* =================================================================
   MY QR CODES PAGE - TABLE LAYOUT
   ================================================================= */

/* Stats display in header */
.qrcg-codes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.qrcg-codes-header h3 {
    font-size: 28px;
    color: #333;
    margin: 0;
}

.qrcg-codes-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Table Layout */
.qrcg-codes-table-wrapper {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.qrcg-codes-table {
    width: 100%;
    border-collapse: collapse;
}

.qrcg-codes-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.qrcg-codes-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qrcg-codes-table tbody tr {
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.15s;
}

.qrcg-codes-table tbody tr:hover {
    background: #f8f9fa;
}

.qrcg-codes-table tbody tr:last-child {
    border-bottom: none;
}

.qrcg-codes-table td {
    padding: 16px;
    vertical-align: middle;
}

/* Type badges */
.qr-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.qr-type-memorial { background: #8b5cf6; color: white; }
.qr-type-url { background: #3b82f6; color: white; }
.qr-type-vcard { background: #10b981; color: white; }
.qr-type-text { background: #eab308; color: white; }
.qr-type-wifi { background: #14b8a6; color: white; }
.qr-type-email { background: #f97316; color: white; }
.qr-type-phone { background: #06b6d4; color: white; }

/* Simplified QR info cell */
.qr-info strong {
    display: block;
    color: #333;
    font-size: 15px;
}

.qr-short-code {
    color: #6c757d;
    font-family: monospace;
    font-size: 13px;
}

/* Scan count in table */
.qrcg-codes-table .scan-count {
    font-size: 18px;
    font-weight: 600;
    color: #0073aa;
}

/* Created date */
.created-date {
    font-size: 13px;
    color: #6c757d;
}

/* Cleaner Action buttons using Dashicons */
.qr-actions {
    display: flex;
    gap: 6px;
}

.qrcg-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: transparent;
    color: #666;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.qrcg-btn-icon:hover {
    background: #f0f0f0;
    border-color: #999;
    color: #333;
}

.qrcg-btn-icon i,
.qrcg-btn-icon span.dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Specific button hover colors */
.qrcg-btn-icon.qrcg-share-btn:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.qrcg-btn-icon:hover .dashicons-chart-bar {
    color: #0073aa;
}

.qrcg-btn-icon:hover .dashicons-visibility {
    color: #10b981;
}

.qrcg-btn-icon:hover .dashicons-edit {
    color: #f59e0b;
}

.qrcg-btn-icon.qrcg-delete-btn:hover {
    background: #fee;
    border-color: #dc3545;
    color: #dc3545;
}

.qrcg-btn-icon.qrcg-download-btn:hover {
    background: #f3f0ff;
    border-color: #8b5cf6;
    color: #8b5cf6;
}

/* Empty state */
.no-codes {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

.no-codes::before {
    content: "?";
    display: block;
    font-size: 64px;
    margin-bottom: 20px;
}

/* Enhanced loading state */
.qrcg-loading::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #e0e0e0;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments for My QR Codes */
@media (max-width: 768px) {
    .qrcg-codes-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .qrcg-codes-stats {
        width: 100%;
        justify-content: space-around;
    }
    
    .qrcg-codes-table-wrapper {
        overflow-x: auto;
    }
    
    .qrcg-codes-table {
        min-width: 600px;
    }
}

/* =================================================================
   QR CODE CREATION FORM STYLES
   ================================================================= */

.qrcg-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.qrcg-form-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.qrcg-preview-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 20px;
}

/* Tabs */
.qrcg-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.qrcg-tab-link {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
}

.qrcg-tab-link:hover {
    color: #333;
}

.qrcg-tab-link.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

/* Tab Content */
.qrcg-tab-content {
    display: none;
}

.qrcg-tab-content.active {
    display: block;
}

/* Radio Groups */
.qrcg-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.qrcg-radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.qrcg-radio-group input[type="radio"] {
    margin-right: 10px;
}

.qrcg-vcard-desc {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
}

/* Preview Box */
.qrcg-preview-box {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#qrcg-preview-image img {
    max-width: 100%;
    height: auto;
}

#qrcg-preview-image p {
    color: #999;
}

/* Action Buttons */
.qrcg-action-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-direction: column;
}

/* Login Prompt */
.qrcg-login-prompt {
    margin-top: 15px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.qrcg-login-prompt a {
    color: #0073aa;
    text-decoration: none;
}

.qrcg-login-prompt a:hover {
    text-decoration: underline;
}

/* Small text */
small {
    color: #666;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

/* Responsive for QR Creation Form */
@media (max-width: 768px) {
    .qrcg-form-wrapper {
        grid-template-columns: 1fr;
    }
    
    .qrcg-preview-container {
        position: static;
    }
    
    .qrcg-tabs {
        flex-wrap: wrap;
    }
    
    .qrcg-tab-link {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* =================================================================
   CREATE QR CODE PAGE - PROFESSIONAL DESIGN
   ================================================================= */

.qrcg-create-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.qrcg-create-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin-top: 20px;
}

/* Form Section */
.qrcg-create-form-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.qrcg-create-form-section h1 {
    margin: 0 0 30px 0;
    font-size: 28px;
    color: #333;
    font-weight: 600;
}

/* Tab Navigation */
.qrcg-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.qrcg-tab-btn {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qrcg-tab-btn:hover {
    background: #f8f9fa;
    color: #333;
}

.qrcg-tab-btn.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
    background: #f8f9fa;
}

/* Tab Content */
.qrcg-tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

.qrcg-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Form Elements */
.qrcg-form-group {
    margin-bottom: 20px;
}

.qrcg-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.qrcg-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.qrcg-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

.qrcg-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.qrcg-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.qrcg-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.qrcg-checkbox-label input {
    margin-right: 8px;
}

/* Preview Section */
.qrcg-preview-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.qrcg-preview-section h2 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
    font-weight: 600;
}

.qrcg-preview-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 20px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcg-empty-preview {
    text-align: center;
    color: #999;
}

.qrcg-empty-preview .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.qrcg-empty-preview p {
    margin: 0;
    font-size: 14px;
}

#qrcg-preview-display img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Action Buttons */
.qrcg-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.qrcg-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qrcg-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qrcg-btn-primary {
    background: #0073aa;
    color: white;
}

.qrcg-btn-primary:hover:not(:disabled) {
    background: #005a87;
}

.qrcg-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.qrcg-btn-secondary:hover:not(:disabled) {
    background: #e0e0e0;
}

/* Notice */
.qrcg-notice.info {
    background: #d1ecf1;
    color: #0c5460;
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #0073aa;
}

/* Responsive */
@media (max-width: 992px) {
    .qrcg-create-layout {
        grid-template-columns: 1fr;
    }
    
    .qrcg-preview-section {
        position: static;
    }
    
    .qrcg-tabs-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .qrcg-tab-btn {
        white-space: nowrap;
        min-width: 80px;
    }
}

@media (max-width: 576px) {
    .qrcg-form-row {
        grid-template-columns: 1fr;
    }
    
    .qrcg-action-buttons {
        grid-template-columns: 1fr;
    }
}