/**
 * Professional Business-Oriented Admin Interface
 * Flexible Minimum Order Plugin
 * Clean, modern, accessible design with no hover animations
 */

/* Reset and base styles */
.fmo-admin * {
    box-sizing: border-box;
}

/* Main container - full width responsive */
.fmo-admin {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #111827;
}

/* Settings layout */
.fmo-settings-container {
    margin-top: 30px;
}

.fmo-settings-row {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.fmo-settings-column {
    flex: 1;
    min-width: 0;
}

.fmo-basic-settings {
    flex: 1.2;
}

.fmo-visual-settings {
    flex: 1;
}

.fmo-shortcode-section {
    margin-top: 30px;
}

.fmo-shortcode-section .fmo-card {
    background: #1a1a1a;
    color: white;
    border: none;
}

.fmo-shortcode-section .fmo-card-title {
    color: white;
    margin-bottom: 15px;
}

.fmo-shortcode-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.fmo-shortcode-section code {
    background: #000000;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    border: 2px solid #333333;
    display: inline-block;
    margin-top: 10px;
    cursor: pointer;
    user-select: all;
    transition: all 0.3s ease;
    position: relative;
}

.fmo-shortcode-section code:hover {
    background: #111111;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.fmo-shortcode-section code:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.5);
}

.fmo-shortcode-section code::after {
    content: "Click to copy";
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fmo-shortcode-section code:hover::after {
    opacity: 1;
}

/* Frontend styles for minimum order notices */
.flexible-minimum-order-shortcode-notice,
.flexible-minimum-order-cart-notice,
.flexible-minimum-order-checkout-warning {
    display: block !important;
    padding: 15px !important;
    margin: 15px 0 !important;
    border-radius: 4px !important;
    border: 1px solid !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    position: relative !important;
    z-index: 9999 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Override WooCommerce default styles */
.woocommerce-info.flexible-minimum-order-shortcode-notice,
.woocommerce-info.flexible-minimum-order-cart-notice,
.woocommerce-error.flexible-minimum-order-checkout-warning {
    background: inherit !important;
    color: inherit !important;
    border-color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

/* Допълнителни стилове за по-добра съвместимост с теми */
body .flexible-minimum-order-checkout-warning,
body .flexible-minimum-order-cart-notice,
body .flexible-minimum-order-shortcode-notice {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 9999 !important;
}

/* Специфични стилове за checkout страницата */
.woocommerce-checkout .flexible-minimum-order-checkout-warning {
    margin: 20px 0 !important;
    clear: both !important;
    float: none !important;
}

/* Стилове за различни теми */
.theme-twentyseventeen .flexible-minimum-order-checkout-warning,
.theme-twentyseventeen .flexible-minimum-order-cart-notice,
.theme-twentyseventeen .flexible-minimum-order-shortcode-notice {
    display: block !important;
}

.theme-twentytwenty .flexible-minimum-order-checkout-warning,
.theme-twentytwenty .flexible-minimum-order-cart-notice,
.theme-twentytwenty .flexible-minimum-order-shortcode-notice {
    display: block !important;
}

.theme-storefront .flexible-minimum-order-checkout-warning,
.theme-storefront .flexible-minimum-order-cart-notice,
.theme-storefront .flexible-minimum-order-shortcode-notice {
    display: block !important;
}

/* Специални стилове за Gutenberg и default форми */
.woocommerce-checkout .flexible-minimum-order-checkout-warning,
.woocommerce .flexible-minimum-order-checkout-warning,
form.checkout .flexible-minimum-order-checkout-warning {
    display: block !important;
    position: relative !important;
    z-index: 9999 !important;
    margin: 20px 0 !important;
    clear: both !important;
    float: none !important;
}

/* Стилове за фиксирано съобщение в footer */
.flexible-minimum-order-checkout-warning[style*="position: fixed"] {
    animation: slideDown 0.3s ease-out !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Стилове за всички възможни контейнери */
.entry-content .flexible-minimum-order-checkout-warning,
.wp-block-woocommerce-checkout .flexible-minimum-order-checkout-warning,
.wc-block-checkout .flexible-minimum-order-checkout-warning {
    display: block !important;
    margin: 20px 0 !important;
}

/* Стилове за WooCommerce Blocks Store API съобщения */
.wc-block-checkout__form .wc-block-components-notice-banner,
.wc-block-cart .wc-block-components-notice-banner,
.wp-block-woocommerce-checkout .wc-block-components-notice-banner {
    display: block !important;
    margin: 20px 0 !important;
}

/* Стилове за Store API грешки */
.wc-block-checkout__form .wc-block-components-notice-banner.is-error,
.wc-block-cart .wc-block-components-notice-banner.is-error,
.wp-block-woocommerce-checkout .wc-block-components-notice-banner.is-error {
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
    color: #721c24 !important;
    padding: 15px !important;
    border-radius: 4px !important;
    border: 1px solid !important;
    margin: 20px 0 !important;
}

/* Скриване на дублиращи се съобщения */
.flexible-minimum-order-checkout-warning + .flexible-minimum-order-checkout-warning {
    display: none !important;
}

/* Скриване на дублиращи се съобщения в различни контейнери */
.woocommerce-checkout .flexible-minimum-order-checkout-warning + .flexible-minimum-order-checkout-warning,
.woocommerce .flexible-minimum-order-checkout-warning + .flexible-minimum-order-checkout-warning,
form.checkout .flexible-minimum-order-checkout-warning + .flexible-minimum-order-checkout-warning {
    display: none !important;
}

/* Responsive design */
@media (max-width: 1200px) {
    .fmo-settings-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .fmo-settings-column {
        flex: none;
    }
}

@media (max-width: 768px) {
    .fmo-admin {
        padding: 0 10px;
    }
    
    .fmo-settings-row {
        gap: 15px;
    }
}

/* Header section */
.fmo-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.fmo-title {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.fmo-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}

/* Card container */
.fmo-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fmo-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

/* Form layout */
.fmo-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fmo-field {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: flex-start;
    padding: 16px 0;
    border-top: 1px solid #e5e7eb;
}

.fmo-field:first-child {
    border-top: none;
    padding-top: 0;
}

.fmo-field:last-child {
    padding-bottom: 0;
}

.fmo-field-label {
    display: flex;
    align-items: center;
    min-height: 40px;
}

.fmo-field-label label {
    font-weight: 500;
    color: #111827;
    font-size: 14px;
    margin: 0;
    cursor: pointer;
}

.fmo-field-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 420px;
}

/* Input styles */
.fmo-input {
    width: 100%;
    max-width: 420px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fmo-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.fmo-input:disabled {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

.fmo-textarea {
    width: 100%;
    max-width: 420px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.fmo-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.fmo-color-input {
    width: 60px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    background: none;
}

.fmo-color-input::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 6px;
    overflow: hidden;
}

.fmo-color-input::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

.fmo-select {
    width: 100%;
    max-width: 420px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fmo-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.fmo-unit {
    margin-left: 8px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.fmo-section-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 20px 0;
    font-style: italic;
}

/* Checkbox styles */
.fmo-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
}

.fmo-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #2563eb;
}

.fmo-checkbox-text {
    font-weight: 500;
    color: #111827;
    font-size: 14px;
}

/* Field descriptions */
.fmo-field-description {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Actions section */
.fmo-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* Button styles */
.fmo-btn {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.fmo-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.fmo-btn-primary {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

.fmo-btn-primary:focus {
    background: #1f2937;
    border-color: #1f2937;
}

.fmo-btn-secondary {
    background: #f9fafb;
    color: #111827;
    border-color: #e5e7eb;
}

.fmo-btn-secondary:focus {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.fmo-btn-danger {
    background: #dc3545;
    color: #ffffff;
    border-color: #dc3545;
    margin-left: 10px;
}

.fmo-btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
}

.fmo-btn-danger:focus {
    background: #c82333;
    border-color: #c82333;
}

/* Category table styles */
.fmo-category-table {
    margin-bottom: 24px;
}

.fmo-category-checkbox {
    text-align: center;
    vertical-align: middle;
}

.fmo-category-checkbox .fmo-checkbox-label {
    margin: 0;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fmo-category-checkbox .fmo-checkbox-text {
    font-size: 12px;
    font-weight: 500;
}

.fmo-category-amount-input:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.fmo-category-amount-input.fmo-input-enabled {
    background-color: #ffffff;
    color: #111827;
    opacity: 1;
    transition: all 0.3s ease;
}

/* Coming Soon Styles */
.fmo-coming-soon {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    margin: 10px 0;
}

.fmo-coming-soon-icon {
    font-size: 32px;
    margin-right: 15px;
    opacity: 0.7;
}

.fmo-coming-soon-text {
    flex: 1;
}

.fmo-coming-soon-text strong {
    color: #495057;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.fmo-coming-soon-text {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.4;
}

/* Categories and custom message fields are controlled by JavaScript */

.fmo-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    margin-top: 12px;
}

#fmo-categories-settings {
    display: none;
    margin-top: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.fmo-table thead {
    background: #f9fafb;
}

.fmo-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #111827;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
}

.fmo-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.fmo-table tbody tr:last-child td {
    border-bottom: none;
}

.fmo-category-name {
    font-weight: 500;
    color: #111827;
    font-size: 14px;
}

.fmo-category-input {
    width: 200px;
}

.fmo-category-input .fmo-input {
    max-width: 200px;
}

.fmo-no-categories {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 32px 16px;
}

/* Responsive design */
@media (max-width: 1024px) {
    .fmo-admin {
        padding: 0 16px;
    }
    
    .fmo-field {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .fmo-field-label {
        min-height: auto;
    }
    
    .fmo-field-input {
        max-width: 100%;
    }
    
    .fmo-input {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .fmo-admin {
        padding: 0 12px;
    }
    
    .fmo-title {
        font-size: 28px;
    }
    
    .fmo-card {
        padding: 20px;
        border-radius: 12px;
    }
    
    .fmo-actions {
        flex-direction: column;
    }
    
    .fmo-btn {
        width: 100%;
        justify-content: center;
    }
    
    .fmo-table {
        font-size: 13px;
    }
    
    .fmo-table th,
    .fmo-table td {
        padding: 12px 14px;
    }
    
    .fmo-category-input {
        width: 100%;
    }
    
    .fmo-category-input .fmo-input {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .fmo-admin {
        padding: 0 8px;
    }
    
    .fmo-title {
        font-size: 24px;
    }
    
    .fmo-card {
        padding: 16px;
        border-radius: 10px;
    }
    
    .fmo-table th,
    .fmo-table td {
        padding: 10px 12px;
    }
}

/* Accessibility improvements */
.fmo-admin *:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.fmo-admin *:focus:not(.fmo-input):not(.fmo-textarea):not(.fmo-btn) {
    outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .fmo-card {
        border-color: #000000;
    }
    
    .fmo-input {
        border-color: #000000;
    }
    
    .fmo-btn-primary {
        background: #000000;
        border-color: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .fmo-admin * {
        transition: none !important;
    }
}

/* Print styles */
@media print {
    .fmo-actions {
        display: none;
    }
    
    .fmo-card {
        border: 1px solid #000000;
        box-shadow: none;
    }
}

/* ========================================
   ORDER PROGRESS PAGE STYLES
   ======================================== */

/* Order Progress specific styles */
.fmo-admin {
    background: #f6f7f9;
    min-height: 100vh;
}

/* Coming Soon Notice */
.fmo-coming-soon-notice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.fmo-coming-soon-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.fmo-coming-soon-title {
    font-size: 20px;
    font-weight: 600;
    color: #92400e;
    margin: 0 0 8px 0;
}

.fmo-coming-soon-text {
    font-size: 14px;
    color: #92400e;
    margin: 0;
    line-height: 1.5;
}

/* Disabled Section */
.fmo-disabled-section {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.fmo-disabled-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    z-index: 1;
}

.fmo-grid {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 24px;
    align-items: start;
}

.fmo-settings-column {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.fmo-preview-column {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.fmo-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.fmo-field {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    align-items: flex-start;
    padding: 14px 0;
    border-top: 1px solid #e5e7eb;
}

.fmo-field:first-child {
    border-top: none;
    padding-top: 0;
}

.fmo-field:last-child {
    padding-bottom: 0;
}

.fmo-label {
    display: flex;
    align-items: center;
    min-height: 40px;
}

.fmo-label label {
    font-weight: 500;
    color: #111827;
    font-size: 14px;
    margin: 0;
    cursor: pointer;
}

.fmo-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 420px;
}

.fmo-input {
    width: 100%;
    max-width: 420px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fmo-input:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.1);
}

.fmo-input:disabled {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

.fmo-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
}

.fmo-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #111827;
}

.fmo-checkbox-text {
    font-weight: 500;
    color: #111827;
    font-size: 14px;
}

.fmo-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.fmo-help {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
    font-style: italic;
}

.fmo-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.fmo-btn {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.fmo-btn:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.fmo-btn-primary {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

.fmo-btn-secondary {
    background: #f9fafb;
    color: #111827;
    border-color: #e5e7eb;
}

/* Preview styles */
.fmo-preview-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
}

.fmo-preview {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    min-height: 200px;
}

.fmo-preview-disabled {
    color: #9ca3af;
    font-style: italic;
    text-align: center;
    margin: 40px 0;
}

/* Progress bar styles */
.fmo-progress-container {
    margin-bottom: 16px;
}

.fmo-progress-bar {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}

.fmo-progress-fill {
    height: 100%;
    background: #111827;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.fmo-progress-message {
    font-size: 14px;
    color: #111827;
    line-height: 1.5;
}

/* Message only style */
.fmo-message-only {
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

/* Pill compact style */
.fmo-pill-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fmo-pill-progress {
    background: #111827;
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

.fmo-pill-message {
    font-size: 13px;
    color: #111827;
    line-height: 1.4;
}

/* Pill indicators */
.fmo-pill-row {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.fmo-pill {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

/* Demo controls */
.fmo-demo-controls h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.fmo-demo-controls > div {
    display: flex;
    gap: 10px;
    align-items: center;
}

.fmo-demo-controls label {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}

.fmo-demo-controls input[type="range"] {
    flex: 1;
    max-width: 200px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.fmo-demo-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #111827;
    border-radius: 50%;
    cursor: pointer;
}

.fmo-demo-controls input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #111827;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.fmo-demo-controls span {
    font-size: 12px;
    color: #111827;
    min-width: 60px;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 1200px) {
    .fmo-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .fmo-settings-column {
        order: 1;
    }
    
    .fmo-preview-column {
        order: 2;
    }
}

@media (max-width: 768px) {
    .fmo-field {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .fmo-label {
        min-height: auto;
    }
    
    .fmo-input-group {
        max-width: 100%;
    }
    
    .fmo-input {
        max-width: 100%;
    }
    
    .fmo-actions {
        flex-direction: column;
    }
    
    .fmo-btn {
        width: 100%;
        justify-content: center;
    }
    
    .fmo-pill-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .fmo-pill-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Accessibility improvements */
.fmo-admin *:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.fmo-admin *:focus:not(.fmo-input):not(.fmo-textarea):not(.fmo-btn) {
    outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .fmo-card,
    .fmo-settings-column,
    .fmo-preview-column {
        border-color: #000000;
    }
    
    .fmo-input {
        border-color: #000000;
    }
    
    .fmo-btn-primary {
        background: #000000;
        border-color: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .fmo-admin * {
        transition: none !important;
    }
    
    .fmo-progress-fill {
        transition: none !important;
    }
}

/* ========================================
   ABOUT PAGE STYLES
   ======================================== */

/* About page container */
.fmo-admin-about {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    background: #f6f7f9;
    min-height: 100vh;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #111827;
}

/* Hero section */
.fmo-about-hero {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 32px;
    margin-bottom: 20px;
    text-align: center;
}

.fmo-about-title {
    font-size: 36px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.fmo-about-subtitle {
    font-size: 18px;
    color: #6b7280;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Section titles and subtitles */
.fmo-section-title {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
}

.fmo-section-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 24px 0;
}

/* Features section */
.fmo-about-features {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 32px;
    margin-bottom: 20px;
}

.fmo-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.fmo-feature-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    transition: none;
}

.fmo-feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
}

.fmo-feature-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
}

.fmo-feature-description {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Developer section */
.fmo-about-developer {
    background: #eef6ff;
    border: 1px solid #daecff;
    border-radius: 14px;
    padding: 32px;
    margin-bottom: 20px;
}

.fmo-developer-description {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.fmo-developer-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Support section */
.fmo-about-support {
    background: #fff3cd;
    border: 1px solid #ffe69c;
    border-radius: 14px;
    padding: 32px;
    margin-bottom: 20px;
}

.fmo-support-list {
    margin: 0 0 20px 0;
    padding-left: 20px;
    color: #6b7280;
}

.fmo-support-list li {
    margin-bottom: 8px;
    font-size: 15px;
}

.fmo-support-reminder {
    font-size: 16px;
    color: #111827;
    margin: 0 0 24px 0;
}

.fmo-support-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* About page buttons */
.fmo-admin-about .fmo-btn {
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.fmo-admin-about .fmo-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.fmo-admin-about .fmo-btn-primary {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

.fmo-admin-about .fmo-btn-secondary {
    background: #f9fafb;
    color: #111827;
    border-color: #e5e7eb;
}

/* Responsive design for about page */
@media (max-width: 1024px) {
    .fmo-admin-about {
        padding: 0 16px;
    }
    
    .fmo-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .fmo-about-hero,
    .fmo-about-features,
    .fmo-about-developer,
    .fmo-about-support {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .fmo-admin-about {
        padding: 0 12px;
    }
    
    .fmo-about-title {
        font-size: 28px;
    }
    
    .fmo-about-subtitle {
        font-size: 16px;
    }
    
    .fmo-features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .fmo-about-hero,
    .fmo-about-features,
    .fmo-about-developer,
    .fmo-about-support {
        padding: 20px;
        border-radius: 12px;
    }
    
    .fmo-developer-actions,
    .fmo-support-actions {
        flex-direction: column;
    }
    
    .fmo-admin-about .fmo-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .fmo-admin-about {
        padding: 0 8px;
    }
    
    .fmo-about-title {
        font-size: 24px;
    }
    
    .fmo-about-hero,
    .fmo-about-features,
    .fmo-about-developer,
    .fmo-about-support {
        padding: 16px;
        border-radius: 10px;
    }
    
    .fmo-section-title {
        font-size: 20px;
    }
    
    .fmo-feature-card {
        padding: 20px;
    }
}