/**
 * Admin-specific styles for ImjolWP AI Automation for WordPress.
 */

/* Dashboard Styles */
.imjolwp-dashboard {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.dashboard-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.dashboard-widgets {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.widget {
    background: #0073aa;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    flex: 1;
}

.widget h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.widget p {
    font-size: 22px;
    font-weight: bold;
}

/* AI Tools Section */
.ai-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.ai-tools li {
    list-style: none;
}

.ai-tools a {
    display: block;
    background: #28a745;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.ai-tools a:hover {
    background: #218838;
}

/* Dashboard Footer */
.dashboard-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

/* General Styles */
.ai-content-generator-wrap {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.ai-content-generator-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ai-content-generator-section {
    margin-bottom: 30px;
}

.ai-content-generator-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #23282d;
}

/* Feature Cards Grid */
.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.ai-feature-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ai-feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #23282d;
}

.ai-feature-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: background 0.4s ease;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: #fff;
    transition: transform 0.4s ease;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #0073aa;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Pro Badge */
.pro-badge {
    color: #fff;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    background: linear-gradient(to right, #ff0000, #ff8000);
}

/* Automation & Scheduling Section */
.automation-settings {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.automation-setting {
    display: flex;
    align-items: center;
    gap: 10px;
}

.automation-setting label {
    font-weight: 600;
    color: #23282d;
}

.automation-setting select,
.automation-setting input {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Primary Button */
.button-primary {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.button-primary:hover {
    background: #005177;
}

/* AI Content Generator */
.ai-content-form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 0 auto;
}

.ai-content-form h1 {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
}

.ai-content-form .form-table th {
    font-weight: bold;
    font-size: 1em;
}

.ai-content-form .regular-text,
.ai-content-form .regular-select,
.ai-content-form .small-text {
    width: 100%;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.ai-content-form .regular-select {
    height: 35px;
}

/* Submit Button */
.ai-content-form .submit input[type="submit"] {
    background-color: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ai-content-form .submit input[type="submit"]:hover {
    background-color: #005177;
}

/* Alerts */
.updated,
.error {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
}

.updated {
    background-color: #d4edda;
    color: #155724;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
}

.updated a {
    color: #0062cc;
}

/* Setting Page */
.wrap-settings {
    max-width: 35%;
    margin: 0 auto;
    padding: 25px;
    margin-top: 80px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-sizing: border-box;
    background: #fff;
}