/* Erphp Loggedin 管理界面样式 */

.erphp-settings-container {
    max-width: 1200px;
}

.erphp-settings-section {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.erphp-settings-section h2 {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
    margin: 0;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #23282d;
}

.erphp-settings-section .form-table {
    margin: 0;
}

.erphp-settings-section .form-table th {
    width: 250px;
    font-weight: 600;
    color: #23282d;
}

.erphp-settings-section .form-table td {
    vertical-align: top;
    padding: 20px;
}

/* 响应式设计 */
@media screen and (max-width: 782px) {
    .erphp-settings-section .form-table th {
        width: 100%;
        display: block;
        padding: 10px 20px;
        background: #f8f9fa;
        border-bottom: 1px solid #e5e5e5;
    }

    .erphp-settings-section .form-table td {
        padding: 10px 20px;
    }
}

/* 按钮样式 */
.erphp-settings-section .button-primary {
    background: #007cba;
    border-color: #007cba;
    color: #fff;
    padding: 8px 16px;
    height: auto;
    font-size: 14px;
    font-weight: 500;
}

.erphp-settings-section .button-primary:hover {
    background: #005a87;
    border-color: #005a87;
}

/* 复选框样式 */
.erphp-settings-section input[type="checkbox"] {
    margin-right: 8px;
}

/* 描述文本样式 */
.erphp-settings-section .description {
    color: #666;
    font-style: italic;
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.4;
}

/* 警告样式 */
.erphp-settings-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.erphp-settings-warning strong {
    color: #856404;
}

/* 成功提示样式 */
.erphp-settings-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.erphp-settings-success strong {
    color: #155724;
}

/* 统计信息样式 */
.erphp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.erphp-stat-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
}

.erphp-stat-card .number {
    font-size: 24px;
    font-weight: 600;
    color: #007cba;
    display: block;
    margin-bottom: 5px;
}

.erphp-stat-card .label {
    color: #666;
    font-size: 14px;
}

/* AI统计卡片样式 */
.erphp-stat-card.ai-card {
    border-color: #17a2b8;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.erphp-stat-card.ai-card .number {
    color: #17a2b8;
}

.erphp-stat-card.ai-card .label {
    color: #6c757d;
    font-weight: 500;
}

/* 表格样式改进 */
.wp-list-table .column-erphp_loggedin_status {
    width: 80px;
}

.erphp-status-banned {
    color: #dc3545;
    font-weight: 600;
}

.erphp-status-active {
    color: #28a745;
    font-weight: 600;
}

/* 加载动画 */
.erphp-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: erphp-spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes erphp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 登录地理位置提示弹窗样式 */
.erphp-login-tips {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 320px;
    width: 320px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    z-index: 2147483000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    animation: erphp-slide-in 0.3s ease-out;
    font-size: 13px;
}

@keyframes erphp-slide-in {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.erphp-login-tips-content {
    padding: 15px;
    position: relative;
    line-height: 1.4;
}

.erphp-login-tips-bug {
    margin-bottom: 8px;
    line-height: 1.4;
    color: #333;
    font-size: 13px;
}

.erphp-login-tips-bug:last-child {
    margin-bottom: 0;
}

.erphp-login-tips .close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
}

.erphp-login-tips .close:hover {
    color: #666;
}

.erphp-login-tips .erphp-appeal-link {
    color: #007cba;
    text-decoration: underline;
    cursor: pointer;
}

.erphp-login-tips .erphp-appeal-link:hover {
    color: #005a87;
    text-decoration: none;
}

.erphp-login-tips .ip {
    font-family: monospace;
    background: #f8f9fa;
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 12px;
    color: #495057;
    font-weight: 500;
}

.erphp-login-tips .erphp-appeal-link {
    color: #007cba !important;
    text-decoration: underline !important;
    cursor: pointer;
}

.erphp-login-tips .erphp-appeal-link:hover {
    color: #005a87 !important;
}

/* 申诉表单样式 - 已统一使用短代码版本，无需弹窗样式 */

/* 工具提示 */
.erphp-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.erphp-tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 8px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.erphp-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 筛选表单样式 */
.erphp-filter-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.erphp-filter-row {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.erphp-filter-field {
    flex: 1;
    min-width: 200px;
}

.erphp-filter-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #23282d;
}

.erphp-filter-field input[type="text"],
.erphp-filter-field input[type="date"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.erphp-filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 地理位置查询样式 */
.erphp-location-cell {
    position: relative;
}

.erphp-location-success {
    color: #28a745;
    font-weight: 500;
}

.erphp-location-error {
    color: #dc3545;
    font-style: italic;
}

/* 无数据提示 */
.erphp-no-data {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.erphp-no-data p {
    font-size: 16px;
    margin: 0;
}

/* 响应式调整 */
@media screen and (max-width: 782px) {
    .erphp-filter-row {
        flex-direction: column;
    }

    .erphp-filter-field {
        min-width: auto;
    }

    .erphp-filter-actions {
        justify-content: center;
    }
}
