/* FACTOR Plugin - QR Code Setup UI */

/* ============================================
   WIZARD STYLES
   ============================================ */

#wizard_plugin_factor_mqtt {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
}

#wizard_plugin_factor_mqtt .language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

#wizard_plugin_factor_mqtt #wizard-lang-selector {
    display: flex;
    gap: 4px;
}

#wizard_plugin_factor_mqtt #wizard-lang-selector .btn {
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.4;
    border: 1px solid #ccc;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: all 0.2s;
}

#wizard_plugin_factor_mqtt #wizard-lang-selector .btn:hover {
    background-color: #e0e0e0;
    border-color: #aaa;
}

#wizard_plugin_factor_mqtt #wizard-lang-selector .btn.active {
    background-color: #0088cc;
    color: white;
    border-color: #0088cc;
}

#wizard_plugin_factor_mqtt .wizard-header {
    text-align: center;
    margin-bottom: 30px;
}

#wizard_plugin_factor_mqtt .wizard-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

#wizard_plugin_factor_mqtt .wizard-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
}

#wizard_plugin_factor_mqtt .wizard-header .lead {
    font-size: 18px;
    color: #666;
    margin-bottom: 0;
}

#wizard_plugin_factor_mqtt .wizard-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

#wizard_plugin_factor_mqtt .wizard-intro {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

#wizard_plugin_factor_mqtt .wizard-tagline {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

#wizard_plugin_factor_mqtt .wizard-qr-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: #fff;
    border: 2px solid #0088cc;
    border-radius: 8px;
}

#wizard_plugin_factor_mqtt .wizard-qr-section h3 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #0088cc;
}

#wizard_plugin_factor_mqtt .wizard-qr-section p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

#wizard_plugin_factor_mqtt .wizard-qr-section .qr-container {
    width: 300px;
    height: 300px;
    margin: 0 auto 25px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#wizard_plugin_factor_mqtt #wizard-qr-code {
    max-width: 100%;
    max-height: 100%;
}

#wizard_plugin_factor_mqtt .qr-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #999;
}

#wizard_plugin_factor_mqtt .wizard-actions {
    margin-top: 20px;
    text-align: center;
}

#wizard_plugin_factor_mqtt .wizard-help-link {
    text-align: center;
    margin-top: 20px;
}

#wizard_plugin_factor_mqtt .wizard-help-link a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

#wizard_plugin_factor_mqtt .wizard-help-link a:hover {
    color: #0088cc;
    text-decoration: underline;
}

#wizard_plugin_factor_mqtt #wizard-open-setup {
    font-size: 18px;
    padding: 15px 35px;
    font-weight: bold;
}

#wizard_plugin_factor_mqtt .wizard-help {
    padding: 20px;
    background: #fff9e6;
    border: 1px solid #ffd966;
    border-radius: 6px;
    margin-bottom: 20px;
}

#wizard_plugin_factor_mqtt .wizard-help h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #997700;
}

#wizard_plugin_factor_mqtt .wizard-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
    #wizard_plugin_factor_mqtt {
        padding: 20px 15px;
    }

    #wizard_plugin_factor_mqtt .wizard-header h2 {
        font-size: 24px;
    }

    #wizard_plugin_factor_mqtt .wizard-benefits-list {
        grid-template-columns: 1fr;
    }

    #wizard_plugin_factor_mqtt .wizard-qr-section .qr-container {
        width: 250px;
        height: 250px;
    }
}

/* ============================================
   SETTINGS PAGE STYLES
   ============================================ */

/* Language Selector */
#settings_plugin_factor_mqtt .language-selector {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

#settings_plugin_factor_mqtt #fm-lang-selector {
    display: flex;
    gap: 4px;
}

#settings_plugin_factor_mqtt #fm-lang-selector .btn {
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.4;
    border: 1px solid #ccc;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: all 0.2s;
}

#settings_plugin_factor_mqtt #fm-lang-selector .btn:hover {
    background-color: #e0e0e0;
    border-color: #aaa;
}

#settings_plugin_factor_mqtt #fm-lang-selector .btn.active {
    background-color: #0088cc;
    color: white;
    border-color: #0088cc;
}

/* Main Setup Container */
#settings_plugin_factor_mqtt .setup-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
#settings_plugin_factor_mqtt .setup-header {
    text-align: center;
    margin-bottom: 30px;
}

#settings_plugin_factor_mqtt .setup-header h2 {
    margin-bottom: 10px;
    color: #333;
}

/* URL Section */
#settings_plugin_factor_mqtt .url-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#settings_plugin_factor_mqtt .url-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #999;
    padding: 20px;
}

#settings_plugin_factor_mqtt .url-loading i {
    font-size: 24px;
}

#settings_plugin_factor_mqtt .url-info {
    margin-bottom: 15px;
}

#settings_plugin_factor_mqtt .url-info:last-child {
    margin-bottom: 0;
}

#settings_plugin_factor_mqtt .url-info label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

#settings_plugin_factor_mqtt .url-info code {
    display: block;
    padding: 10px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: Monaco, Consolas, 'Courier New', monospace;
    font-size: 12px;
    word-break: break-all;
    color: #0088cc;
}

/* Action Buttons */
#settings_plugin_factor_mqtt .action-buttons {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

#settings_plugin_factor_mqtt #fm-open-setup {
    font-size: 16px;
    padding: 12px 24px;
}

/* Help Section */
#settings_plugin_factor_mqtt .help-section {
    padding: 20px;
    background: #f0f8ff;
    border: 1px solid #b8d9f5;
    border-radius: 4px;
}

#settings_plugin_factor_mqtt .help-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2a6496;
}

#settings_plugin_factor_mqtt .help-section ol {
    margin: 0;
    padding-left: 25px;
}

#settings_plugin_factor_mqtt .help-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    #settings_plugin_factor_mqtt .action-buttons {
        flex-direction: column;
    }

    #settings_plugin_factor_mqtt #fm-open-setup {
        width: 100%;
    }
}
