/* GutenWise Admin Styles */
:root {
    --gutenwise-purple: #7E3AF2;
    --gutenwise-purple-light: #F3E8FF;
    --gutenwise-text: #111827;
    --gutenwise-text-muted: #6B7280;
    --gutenwise-bg: #F9FAFB;
    --gutenwise-border: #E5E7EB;
    --gutenwise-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --gutenwise-card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.gutenwise-admin-wrap {
    margin: 20px 20px 0 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--gutenwise-text);
}

/* Header & Nav */
.gutenwise-header {
    background: #fff;
    padding: 15px 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    box-shadow: var(--gutenwise-shadow);
    margin-bottom: 24px;
}

.gutenwise-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--gutenwise-text);
    padding-right: 30px;
    border-right: 2px solid var(--gutenwise-border);
}

.gutenwise-logo img {
    height: 32px;
    width: auto;
    display: block;
}

.gutenwise-nav {
    display: flex;
    gap: 10px;
    margin-left: 30px;
}

.gutenwise-nav a {
    text-decoration: none;
    color: var(--gutenwise-text-muted);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 14px;
}

.gutenwise-nav a:hover {
    color: var(--gutenwise-purple);
    background: var(--gutenwise-purple-light);
}

.gutenwise-nav a.active {
    background: var(--gutenwise-purple);
    color: #fff !important; /* Override button defaults */
}

/* Global Control Card */
.gutenwise-global-control {
    background: #fff;
    padding: 24px 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--gutenwise-shadow);
    margin-bottom: 30px;
}

.gutenwise-control-info h2 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
}

.gutenwise-control-info p {
    margin: 0;
    color: var(--gutenwise-text-muted);
    font-size: 13px;
    max-width: 400px;
}

.gutenwise-control-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.gutenwise-filters {
    display: flex;
    gap: 15px;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
}

.gutenwise-filter-item {
    cursor: pointer;
    color: var(--gutenwise-text-muted);
}

.gutenwise-filter-item.active {
    color: #fff;
    background: var(--gutenwise-purple);
    padding: 4px 12px;
    border-radius: 6px;
}

.gutenwise-bulk-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 20px;
    border-left: 1px solid var(--gutenwise-border);
}

.gutenwise-btn {
    appearance: none;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
}

.gutenwise-btn-primary {
    background: var(--gutenwise-purple);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
}

.gutenwise-btn-link {
    color: var(--gutenwise-text);
}

.gutenwise-btn-link:hover {
    color: var(--gutenwise-purple);
}

/* Block Grid */
.gutenwise-block-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.gutenwise-block-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--gutenwise-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gutenwise-block-card:hover {
    box-shadow: var(--gutenwise-card-shadow);
    transform: translateY(-2px);
}

.gutenwise-block-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gutenwise-block-icon {
    width: 40px;
    height: 40px;
    background: var(--gutenwise-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gutenwise-purple);
}

.gutenwise-block-name {
    font-weight: 700;
    font-size: 15px;
}

/* Toggle Switch */
.gutenwise-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.gutenwise-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.gutenwise-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #D1D5DB;
    transition: .4s;
    border-radius: 34px;
}

.gutenwise-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .gutenwise-slider {
    background-color: var(--gutenwise-purple);
}

input:checked + .gutenwise-slider:before {
    transform: translateX(20px);
}

/* Dashboard Page Styles */
.gutenwise-hero-card {
    background: #fff;
    padding: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--gutenwise-shadow);
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}

.gutenwise-hero-content {
    max-width: 500px;
}

.gutenwise-hero-content h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.gutenwise-hero-content p {
    font-size: 16px;
    color: var(--gutenwise-text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.gutenwise-hero-btns {
    display: flex;
    gap: 15px;
}

.gutenwise-hero-btns .gutenwise-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.gutenwise-btn-blue {
    background: #007bff;
    color: #fff;
}

.gutenwise-btn-blue:hover {
    background: #0056b3;
    color: #fff;
}

.gutenwise-btn-outline {
    border: 1px solid var(--gutenwise-border);
    color: var(--gutenwise-text);
}

.gutenwise-btn-outline:hover {
    background: var(--gutenwise-bg);
    color: var(--gutenwise-purple);
}

.gutenwise-hero-illustration {
    position: relative;
    width: 300px;
    height: 200px;
}

.gutenwise-illus-card {
    position: absolute;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.gutenwise-illus-1 { width: 100px; height: 70px; top: 20px; right: 120px; }
.gutenwise-illus-2 { width: 100px; height: 100px; top: -10px; right: 0; background: #007bff; }
.gutenwise-illus-3 { width: 120px; height: 120px; bottom: -20px; right: 100px; }
.gutenwise-illus-4 { width: 100px; height: 80px; bottom: 10px; right: -20px; }

/* Dashboard Columns */
.gutenwise-dashboard-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.gutenwise-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--gutenwise-shadow);
}

.gutenwise-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 18px;
}

.gutenwise-card-header span.dashicons {
    color: var(--gutenwise-text-muted);
}

/* Resource List */
.gutenwise-resource-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gutenwise-resource-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #F8FAFC;
    border-radius: 8px;
    text-decoration: none;
    color: var(--gutenwise-text);
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
}

.gutenwise-resource-item:hover {
    background: #F1F5F9;
}

.gutenwise-res-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gutenwise-res-left span.dashicons {
    color: var(--gutenwise-text-muted);
}

.gutenwise-res-right span.dashicons {
    font-size: 16px;
    color: var(--gutenwise-text-muted);
}

/* Status Table */
.gutenwise-status-table {
    width: 100%;
}

.gutenwise-status-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gutenwise-bg);
}

.gutenwise-status-row:last-child {
    border-bottom: none;
}

.gutenwise-status-label {
    color: var(--gutenwise-text-muted);
    font-size: 14px;
}

.gutenwise-status-value {
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gutenwise-status-value .status-ok {
    color: #2ecc71;
    font-size: 16px;
}

/* WP Admin Overrides */
#wpcontent {
    background: var(--gutenwise-bg);
}
#wpfooter {
    display: none;
}
.notice {
    margin-top: 10px !important;
}

/* WP Sidebar Menu Icon Styling */
#toplevel_page_gutenwise-getting-started .wp-menu-image img {
    padding: 3px 0 0 0;
    max-width: 20px;
}

#toplevel_page_gutenwise-getting-started .wp-menu-image {
    display: flex;
    align-items: center;
    justify-content: center;
}
