/* Скрытие стандартных уведомлений WordPress на странице плагина */
.toplevel_page_wpmat .update-nag,
.toplevel_page_wpmat .notice,
.toplevel_page_wpmat .error,
.toplevel_page_wpmat .updated,
.toplevel_page_wpmat .notice-warning,
.toplevel_page_wpmat .notice-success,
.toplevel_page_wpmat .notice-info {
    display: none !important;
}

/* Wpmat Admin Styles */
.wpmat-wrap {
    max-width: 800px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wpmat-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    padding: 35px 30px;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.3), 0 8px 10px -6px rgba(124, 58, 237, 0.1);
}

.wpmat-header h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.wpmat-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 15px;
    font-weight: 400;
}

.wpmat-notice {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.wpmat-notice-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #34d399;
}

.wpmat-notice-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #f87171;
}

.wpmat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.wpmat-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

.wpmat-card h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.wpmat-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    margin-top: 25px;
}

.wpmat-help {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.wpmat-help code {
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #6366f1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.wpmat-status-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.wpmat-status-table td {
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px dashed #e2e8f0;
}

.wpmat-status-table tr:last-child td {
    border-bottom: none;
}

.wpmat-status-table td:first-child {
    color: #64748b;
    width: 160px;
    font-weight: 500;
}

.wpmat-status-table code {
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #475569;
}

/* Аккордеон — главный заголовок секции */
.wpmat-accordion-header {
    margin-top: 20px;
    padding: 12px 16px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.wpmat-accordion-header:hover {
    background: #e2e8f0;
}

.wpmat-accordion-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
}

.wpmat-arrow {
    font-size: 12px;
    color: #94a3b8;
    transition: transform 0.2s;
    flex-shrink: 0;
}

/* Блоки статусов */
.wpmat-status-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.wpmat-status-block:hover {
    border-color: #cbd5e1;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.wpmat-status-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.wpmat-status-body textarea {
    border-radius: 8px !important;
    border-color: #cbd5e1 !important;
    transition: all 0.2s;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: #fff;
}

.wpmat-status-body textarea:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
    outline: none;
}

.wpmat-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    background: #f1f5f9;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: background 0.2s;
}

.wpmat-toggle:hover {
    background: #e2e8f0;
}

.wpmat-toggle input {
    margin-right: 12px !important;
    width: 18px !important;
    height: 18px !important;
    cursor: pointer;
}

.wpmat-toggle-label {
    font-size: 15px;
    color: #1e293b;
}

/* Формы */
.form-table th {
    font-weight: 500;
    color: #334155;
}

.form-table input.regular-text {
    width: 100%;
    max-width: 500px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-table input.regular-text:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

/* Footer & Support */
.wpmat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 25px 30px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.wpmat-support-block {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wpmat-support-icon {
    font-size: 32px;
    background: #f0fdfa;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #0d9488;
}

.wpmat-support-content h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.wpmat-support-content p {
    margin: 0 0 6px 0;
    font-size: 13px;
    color: #64748b;
    max-width: 300px;
    line-height: 1.4;
}

.wpmat-support-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #0ea5e9;
    text-decoration: none;
    background: #f0f9ff;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

.wpmat-support-link:hover {
    background: #e0f2fe;
    color: #0284c7;
}

.wpmat-submit-wrapper {
    margin: 0;
    padding: 0;
}

.wpmat-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 28px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #fff !important;
    cursor: pointer;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3) !important;
}

.wpmat-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.4) !important;
}

.wpmat-btn:active {
    transform: translateY(1px);
}
