/**
 * Admin styles for Multilang Find & Replace plugin
 *
 * @package MultilangFindReplace
 */

/* Admin container */
.mfr-admin-container {
    margin-top: 20px;
}

/* Required field indicator */
.required {
    color: #d63638;
}

/* Status indicators */
.mfr-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 10px;
}

.mfr-status-active {
    background-color: #d1e7dd;
    color: #0f5132;
}

.mfr-status-inactive {
    background-color: #f8d7da;
    color: #842029;
}

/* Form styling */
#mfr-rule-form textarea {
    font-family: monospace;
}

/* Table styling */
.wp-list-table .column-find,
.wp-list-table .column-replace_with {
    width: 20%;
}

.wp-list-table .column-type,
.wp-list-table .column-language,
.wp-list-table .column-status,
.wp-list-table .column-created_at {
    width: 12%;
}

/* Help text */
.mfr-help-text {
    background-color: #f0f0f1;
    border-left: 4px solid #2271b1;
    padding: 12px;
    margin: 15px 0;
}

.mfr-help-text h4 {
    margin-top: 0;
    margin-bottom: 8px;
}

.mfr-help-text p {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .wp-list-table .column-find,
    .wp-list-table .column-replace_with {
        width: auto;
    }
}

/* Inspector info block styling */
.mfr-inspector-info {
    margin-top: 15px;
    padding: 15px;
    background: #f0f6fc;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
}

.mfr-inspector-info h4 {
    margin: 0 0 10px 0;
    color: #0073aa;
    font-size: 14px;
    font-weight: 600;
}

.mfr-inspector-info p {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 13px;
    line-height: 1.4;
}

.mfr-inspector-info p:last-child {
    margin-bottom: 0;
}

.mfr-inspector-info strong {
    color: #0073aa;
    font-weight: 600;
}

/* Dark mode support for inspector info */
@media (prefers-color-scheme: dark) {
    .mfr-inspector-info {
        background: #1e1e1e;
        border-left-color: #0073aa;
    }
    
    .mfr-inspector-info h4 {
        color: #0073aa;
    }
    
    .mfr-inspector-info p {
        color: #e0e0e0;
    }
    
    .mfr-inspector-info strong {
        color: #0073aa;
    }
}

/* Help page styling */
.mfr-help-container {
    margin-top: 20px;
}

.mfr-help-content {
    margin-top: 20px;
}

.mfr-help-section {
    display: none;
}

.mfr-help-section.active {
    display: block;
}

.mfr-help-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.mfr-help-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #0073aa;
    font-size: 18px;
    border-bottom: 2px solid #f0f0f1;
    padding-bottom: 10px;
}

.mfr-help-card h4 {
    color: #333;
    font-size: 16px;
    margin-bottom: 10px;
}

.mfr-help-card p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.mfr-help-card ul, .mfr-help-card ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.mfr-help-card li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Use cases styling */
.mfr-use-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.mfr-use-case {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
}

.mfr-use-case h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0073aa;
}

.mfr-use-case p {
    margin-bottom: 0;
    font-size: 14px;
}

/* Process flow styling */
.mfr-process-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.mfr-process-step {
    text-align: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.mfr-step-number {
    width: 40px;
    height: 40px;
    background: #0073aa;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    margin: 0 auto 15px;
}

.mfr-step-content h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0073aa;
}

.mfr-step-content p {
    margin-bottom: 0;
    font-size: 14px;
}

/* Problem solution styling */
.mfr-problem-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.mfr-problem, .mfr-solution {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
}

.mfr-problem h4 {
    color: #dc3545;
}

.mfr-solution h4 {
    color: #28a745;
}

/* Tool usage styling */
.mfr-tool-usage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.mfr-usage-step {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
}

.mfr-usage-step h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0073aa;
}

/* Rule types styling */
.mfr-rule-type {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.mfr-rule-example {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
}

.mfr-rule-example h5 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0073aa;
}

/* Best practices styling */
.mfr-best-practices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.mfr-practice {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
}

.mfr-practice h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

.mfr-practice:first-child h4 {
    color: #28a745;
}

.mfr-practice:last-child h4 {
    color: #dc3545;
}

/* Troubleshooting styling */
.mfr-troubleshooting {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.mfr-issue {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
}

.mfr-issue h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #0073aa;
}

/* Responsive design for help page */
@media screen and (max-width: 768px) {
    .mfr-problem-solution,
    .mfr-best-practices {
        grid-template-columns: 1fr;
    }
    
    .mfr-use-cases,
    .mfr-process-flow,
    .mfr-tool-usage,
    .mfr-troubleshooting {
        grid-template-columns: 1fr;
    }
}

/* Navigation tabs styling */
.nav-tab-wrapper {
    margin-bottom: 20px;
}

.nav-tab {
    text-decoration: none;
    padding: 8px 16px;
    margin-right: 5px;
    border: 1px solid #c3c4c7;
    background: #f6f7f7;
    color: #50575e;
    border-radius: 3px 3px 0 0;
    font-size: 14px;
    line-height: 1.71428571;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.1s ease-in-out;
}

.nav-tab:hover {
    background: #f0f0f1;
    border-color: #8c8f94;
    color: #fff;
}

.nav-tab-active,
.nav-tab-active:focus,
.nav-tab-active:hover {
    background: #fff;
    border-bottom: 1px solid #fff;
    color: #0073aa;
    margin-bottom: -1px;
    padding-bottom: 9px;
}

/* Dark mode support for navigation */
@media (prefers-color-scheme: dark) {
    .nav-tab {
        background: #2c3338;
        border-color: #50575e;
        color: #dcdcde;
    }
    
    .nav-tab:hover {
        background: #32373c;
        border-color: #646970;
        color: #fff;
    }
    
    .nav-tab-active,
    .nav-tab-active:focus,
    .nav-tab-active:hover {
        background: #0073aa;
        border-bottom-color: #0073aa;
        color: #ffffff;
    }
}
