.page-header {
    margin-bottom: 25px;
}
.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.page-title i {
    color: #14b8a6;
}
.page-desc {
    color: #888;
    margin: 0;
    font-size: 14px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
}

.config-section, .sidebar > div {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.section-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.section-header h2, .section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-header h2 i, .section-header h3 i {
    color: #14b8a6;
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    box-sizing: border-box;
}
.form-group input:focus, .form-group select:focus {
    border-color: #14b8a6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(20,184,166,0.1);
}
.help-text {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.checkbox-label span {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}
.form-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}
.btn-save {
    padding: 12px 30px;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(20,184,166,0.3);
}

.status-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.status-card.enabled {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
}
.status-card.disabled {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fca5a5;
}
.status-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.status-card.enabled .status-icon {
    background: #22c55e;
    color: #fff;
}
.status-card.disabled .status-icon {
    background: #ef4444;
    color: #fff;
}
.status-title {
    font-size: 14px;
    color: #666;
}
.status-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.test-card {
    margin-bottom: 20px;
}
.test-card input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 10px;
}
.test-card input:focus {
    border-color: #14b8a6;
    outline: none;
}
.btn-test {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-test:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(20,184,166,0.3);
}

.stats-card {
    margin-bottom: 20px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}
.stat-item {
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}
.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #0f766e;
}
.stat-label {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}
.cleanup-form {
    display: flex;
    gap: 10px;
}
.cleanup-form select {
    flex: 1;
    padding: 10px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 13px;
}
.cleanup-form button {
    padding: 10px 15px;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}
.cleanup-form button:hover {
    background: #fecaca;
}

.guide-card {
    margin-bottom: 20px;
}
.guide-content {
    font-size: 13px;
    color: #555;
    line-height: 1.8;
}
.guide-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px;
}
.guide-content ol {
    margin: 0;
    padding-left: 20px;
}
.guide-content li {
    margin-bottom: 8px;
}
.warning-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 12px;
    margin-top: 15px;
    border-radius: 0 8px 8px 0;
    display: flex;
    gap: 10px;
}
.warning-box i {
    color: #f59e0b;
    font-size: 18px;
    flex-shrink: 0;
}
.warning-box div {
    font-size: 12px;
    color: #92400e;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
