/* Basic Reset & Body Styling */
.wpaigen-dashboard,
.wpaigen-generate-page,
.wpaigen-license-page {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #2a2a4a 0%, #1a1a2e 100%);
    color: #e0e0f0;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.wpaigen-dashboard .wp-heading-inline,
.wpaigen-generate-page .wp-heading-inline,
.wpaigen-license-page .wp-heading-inline {
    color: #fff;
    font-size: 2.2em;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(100, 255, 255, 0.3);
}

/* Header */
.wpaigen-header {
    text-align: center;
    margin-bottom: 40px;
}
.wpaigen-logo {
    font-size: 2.8em;
    font-weight: 800;
    letter-spacing: -1px;
    color: #64ffda;
    text-shadow: 0 0 15px rgba(100, 255, 218, 0.5);
    background: linear-gradient(45deg, #64ffda, #007bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    line-height: 1.3;
    white-space: nowrap
}
.wpaigen-logo span {
    font-size: 0.5em;
    vertical-align: super;
    font-weight: 600;
    opacity: 1;
    margin-left: 5px;
    color: #a0a0ff;
}
.wpaigen-header p {
    font-size: 1.3em;
    color: #c0c0e0;
    margin-top: 5px;
}

/* Cards & Grid Layout */
.wpaigen-card {
    background: #2a2a3e;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 25px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.wpaigen-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 20px rgba(100, 255, 218, 0.2);
}

.wpaigen-card p {
    font-size: 1.2em;
}

.wpaigen-card h2 {
    color: #64ffda;
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(100, 255, 218, 0.2);
    padding-bottom: 10px;
}

.wpaigen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.wpaigen-grid-2-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* License Page Layout */
.wpaigen-license-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .wpaigen-license-content {
        grid-template-columns: 1fr;
    }
}

.wpaigen-contact-card h2 .dashicons {
    vertical-align: middle;
    margin-right: 8px;
    font-size: 1.1em;
}


@media (max-width: 768px) {
    .wpaigen-grid-2-col {
        grid-template-columns: 1fr;
    }
}

/* Usage Overview Card */
.wpaigen-usage-card .usage-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    gap: 15px;
}
.wpaigen-usage-card .stat-item {
    flex: 1;
    background: #1a1a2e;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.wpaigen-usage-card .stat-label {
    display: block;
    font-size: 1.2em;
    color: #a0a0c0;
    margin-bottom: 15px;
}
.wpaigen-usage-card .stat-value {
    font-size: 2em;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}
.wpaigen-usage-card .wpaigen-plan-badge {
    background: linear-gradient(45deg, #007bff, #8a2be2);
    padding: 6px 25px;
    border-radius: 20px;
    font-size: 1.3em;
    font-weight: 600;
    color: #fff !important;
    display: inline-block;
    text-shadow: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.wpaigen-usage-card .wpaigen-plan-badge.pro {
    background: linear-gradient(45deg, #64ffda, #007bff);
    color: #1a1a2e;
}


/* Buttons */
.wpaigen-dashboard .wpaigen-button,
.wpaigen-license-page .wpaigen-button {
    font-size: 1.2em;
    padding: 5px 25px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.wpaigen-button.button-primary {
    font-size: 1.2em;
    padding: 5px 25px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, #007bff, #8a2be2);
    color: #fff;
}
.wpaigen-button.button-primary:hover {
    background: linear-gradient(45deg, #8a2be2, #007bff);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.wpaigen-button.button-secondary {
    font-size: 1.2em;
    padding: 5px 25px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #5a6268, #343a40);
    color: #e0e0f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.wpaigen-button.button-secondary:hover {
    background: linear-gradient(45deg, #343a40, #5a6268);
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}


/* Upgrade to Pro Section */
.wpaigen-section-upgrade .wpaigen-pro-banner {
    background: linear-gradient(135deg, #1a1a1a, #2b2b3c, #9a4dff);
    color: #fff;
    text-align: center;
    padding: 40px;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 30px rgba(138, 43, 226, 0.4);
}
.wpaigen-section-upgrade .wpaigen-pro-banner h2 {
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 25px;
    font-size: 2.2em;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.wpaigen-section-upgrade .pro-benefits ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 40px;
}
.wpaigen-section-upgrade .pro-benefits li {
    font-size: 1.2em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.wpaigen-section-upgrade .pro-benefits li .dashicons {
    color: #64ffda;
    margin-right: 10px;
    font-size: 1.5em;
    vertical-align: middle;
}
.wpaigen-section-upgrade .pro-price {
    font-size: 1.8em;
    font-weight: 700;
    color: #64ffda;
    display: block;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

#wpaigen-pro-price .price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

#wpaigen-pro-price .price-main {
    font-size: 1.6em;
    font-weight: bold;
    color: #64ffda;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
    line-height: 1.2;
}

#wpaigen-pro-price .price-suffix {
    font-size: 14px;
    color: #a0a0c0;
    font-weight: normal;
    line-height: 1.2;
}

.wpaigen-hidden {
    display: none !important;
}


/* Forms */
.wpaigen-form-group {
    margin-bottom: 20px;
}
.wpaigen-form-group label {
    display: block;
    font-size: 1.2em;
    margin-bottom: 8px;
    color: #e0e0f0;
}
.wpaigen-form-group input[type="text"],
.wpaigen-form-group input[type="email"],
.wpaigen-form-group input[type="number"],
.wpaigen-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 8px;
    background-color: #1a1a2e;
    color: #e0e0f0;
    font-size: 1.2em;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wpaigen-form-group input[type="text"]:focus,
.wpaigen-form-group input[type="email"]:focus,
.wpaigen-form-group input[type="number"]:focus,
.wpaigen-form-group select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
    outline: none;
}
.wpaigen-form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22%23e0e0f0%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M7%2C10L12%2C15L17%2C10H7Z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 35px;
}

/* Disabled Pro Features */
.wpaigen-form-group .pro-feature {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    background-color: #202030 !important;
}
.wpaigen-form-group .pro-feature:before {
    content: "\f160";
    font-family: dashicons;
    margin-right: 5px;
    vertical-align: middle;
}
.wpaigen-form-group .pro-info {
    font-size: 1em;
    color: #a0a0c0;
    margin-top: 5px;
    display: block;
}
.wpaigen-form-group .pro-info .dashicons {
    font-size: 1em;
    vertical-align: middle;
    margin-right: 3px;
    color: #f7a04f;
}
input[type="number"][readonly],
select[readonly],
select option[disabled] {
    cursor: not-allowed;
}

/* Checkbox */
.wpaigen-form-group.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 25px;
    margin-bottom: 30px;
}
.wpaigen-form-group.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.3);
    cursor: pointer;
}
.wpaigen-form-group.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

/* Messages (Success/Error) */
.wpaigen-message {
    margin-top: 20px !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.3em;
    line-height: 1.6;
    color: #fff;
    text-align: center;
    border: 2px solid #fff !important;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    box-sizing: border-box;
    white-space: normal;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wpaigen-message.active {
    opacity: 1;
    height: auto;
    padding: 15px 20px;
    margin-bottom: 20px;
    min-height: 50px;
}
.wpaigen-message.success {
    background-color: #4CAF50;
}
.wpaigen-message.error {
    background-color: #f44336;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.wpaigen-message.info {
    background-color: #2196F3;
}

/* Tips Section (Sidebar) */
.wpaigen-tips-card ul {
    list-style: none;
    padding: 0;
}
.wpaigen-tips-card li {
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 1.2em;
}
.wpaigen-tips-card li .dashicons {
    color: #64ffda;
    font-size: 1.4em;
    vertical-align: middle;
    margin-right: 10px;
}
.wpaigen-tips-card strong {
    color: #e0e0f0;
}

/* Contact Info (License Page) */
.wpaigen-contact-card .contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.wpaigen-contact-card .contact-info .dashicons {
    color: #007bff;
    margin-right: 10px;
    font-size: 1.4em;
}
.wpaigen-contact-card .contact-info a {
    color: #64ffda;
    text-decoration: none;
    transition: color 0.2s ease;
}
.wpaigen-contact-card .contact-info a:hover {
    color: #007bff;
    text-decoration: underline;
}


/* Modals (Payment, Success) */
.wpaigen-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.wpaigen-modal-content {
    background: linear-gradient(135deg, #2a2a3e, #1a1a2e);
    margin: auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    position: relative;
    width: 90%;
    max-width: 500px;
    text-align: center;
    border: 1px solid rgba(100, 255, 218, 0.2);
    animation: fadeIn 0.3s ease-out;
}

.wpaigen-secure-payment-info {
    text-align: center;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.wpaigen-form-section {
    margin-bottom: 25px;
}

.wpaigen-label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    font-size: 1.1em;
    font-weight: 600;
    color: #ffffff;
}

.wpaigen-modal-content #wpaigen-email-input {
    width: calc(100% - 24px);
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #007bff;
    border-radius: 8px;
    background-color: #1a1a2e;
    color: #e0e0f0;
    font-size: 1.1em;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpaigen-modal-content #wpaigen-email-input:focus {
    border-color: #64ffda;
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.3);
    outline: none;
}

.wpaigen-email-helper-text {
    font-size: 0.9em;
    color: #a0a0c0;
    margin-top: -10px;
    margin-bottom: 20px;
    text-align: left;
}

.wpaigen-modal-content .wpaigen-button.button-primary {
    width: 100%;
    padding: 15px 25px;
    font-size: 1.3em;
    border-radius: 10px;
}

.wpaigen-secure-text {
    font-size: 0.85em;
    color: #888;
    margin: 0;
}

/* Header Section */
.wpaigen-modal-header-section {
    text-align: center;
    margin-bottom: 25px;
}

.wpaigen-crown-icon {
    font-size: 48px;
    color: #FFD700;
    margin-bottom: 15px;
    display: block;
    text-align: center;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.wpaigen-product-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(100, 255, 255, 0.2);
}

.wpaigen-product-tagline {
    font-size: 1.1em;
    color: #c0c0e0;
    margin-top: 0;
    margin-bottom: 0;
}

/* Price Section */
.wpaigen-price-section {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px 0;
    font-family: sans-serif;
    border-top: 1px dashed rgba(100, 255, 218, 0.1);
    border-bottom: 1px dashed rgba(100, 255, 218, 0.1);
}

.wpaigen-price {
    font-size: 3.5em;
    font-weight: 800;
    color: #64ffda;
    display: block;
    line-height: 1.4;
    margin-bottom: 5px;
    text-shadow: 0 0 20px rgba(100, 255, 218, 0.7);
}

.wpaigen-price-note {
    font-size: 0.9em;
    color: #a0a0c0;
    margin-top: 0;
    margin-bottom: 0;
}

/* Benefits Section */
.wpaigen-benefits-section {
    margin-bottom: 25px;
    text-align: left;
}

.wpaigen-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wpaigen-benefits-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #e0e0f0;
}

.wpaigen-icon-check {
    margin-right: 10px;
    font-size: 1.3em;
}

.wpaigen-modal-content input[type="email"] {
    width: calc(100% - 30px);
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #007bff;
    border-radius: 8px;
    background-color: #1a1a2e;
    color: #e0e0f0;
    font-size: 1em;
}
.wpaigen-modal-content input[type="email"]:focus {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.4);
}

.wpaigen-form-section {
    margin-bottom: 25px;
}

.wpaigen-modal-close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}
.wpaigen-modal-close:hover,
.wpaigen-modal-close:focus {
    color: #64ffda;
    text-decoration: none;
    cursor: pointer;
}

/* Loading Overlay */
.wpaigen-loading-overlay {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.wpaigen-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spinner-border {
    width: 80px;
    height: 80px;
    border: 8px solid rgba(100, 255, 218, 0.2);
    border-top-color: #64ffda;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    margin-bottom: 20px;
}

#wpaigen-loading-text {
    color: #64ffda;
    font-size: 1.8em;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
    animation: pulse 1.5s infinite alternate;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.05); opacity: 0.9; }
}

/* --- Modal Success Payment Specific Styling --- */
.wpaigen-modal-success .wpaigen-modal-content {
    padding: 40px;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.wpaigen-modal-success .success-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    color: #64ffda;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.4);
    line-height: 1.2;
}

.wpaigen-modal-success .success-message {
    font-size: 1.2em;
    line-height: 1.6;
    color: #e0e0f0;
    margin-bottom: 30px;
    text-align: center;
}

.wpaigen-modal-success .success-message .highlight {
    color: #007bff;
    font-weight: bold;
}

.wpaigen-modal-success #success-email-display {
    color: #64ffda;
    font-weight: bold;
    word-break: break-all;
    display: inline-block;
}

.wpaigen-modal-success .wpaigen-success-button {
    margin-top: 20px;
    width: auto;
    padding: 12px 30px;
    font-size: 1.2em;
    display: inline-block;
}

/* Google Trends Keywords Component */
.wpaigen-trends-card {
    margin-bottom: 20px;
}

.wpaigen-trends-card .wpaigen-card-content {
    padding: 0;
}

.wpaigen-trends-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(100, 255, 218, 0.2);
}

.wpaigen-trends-card h2.wpaigen-trends-title {
    display: flex;
    align-items: center;
    color: #64ffda;
    margin: 0;
    font-weight: 700;
    border-bottom: none;
    padding-bottom: 0px;
}

.wpaigen-trends-title .dashicons {
    margin-right: 8px;
    font-size: 1.2em;
    width: 1.2em;
    height: 1.2em;
}

.wpaigen-refresh-btn {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-width: 80px;
    height: 32px;
}

.wpaigen-refresh-btn:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.wpaigen-refresh-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.wpaigen-refresh-btn .dashicons {
    margin-right: 6px;
    font-size: 1em;
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

.wpaigen-button .dashicons {
    vertical-align: middle;
    line-height: 1;
    margin-right: 3px;
}

#wpaigen-refresh-schedules .dashicons, .dashicons-before:before {
    vertical-align: middle;
    line-height: 1;
    margin-right: 3px;
}

.wpaigen-trends-loading {
    text-align: center;
    padding: 20px;
    color: #c0c0e0;
}

.wpaigen-trends-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(100, 255, 218, 0.3);
    border-top: 2px solid #64ffda;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

.wpaigen-trends-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b6b;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-size: 1.1em;
}

.wpaigen-keywords-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
}

.wpaigen-keyword-item {
    background: linear-gradient(45deg, #1a1a2e, #2a2a3e);
    border: 1px solid rgba(100, 255, 218, 0.2);
    color: #e0e0f0;
    padding: 14px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wpaigen-keyword-item:hover {
    background: linear-gradient(45deg, #007bff, #0056b3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    color: white;
}

.wpaigen-keyword-item .keyword-text {
    position: relative;
    z-index: 2;
    font-weight: 500;
    font-size: 1em;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.wpaigen-keyword-item .keyword-text span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wpaigen-keyword-item .keyword-stats {
    font-size: 0.9em;
    opacity: 0.9;
    margin-left: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.wpaigen-keyword-traffic {
    color: #64ffda;
    font-weight: 600;
}

.wpaigen-keyword-articles {
    color: #007bff;
    font-weight: 600;
}

.wpaigen-keyword-item .trending-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #64ffda;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

/* Custom scrollbar for trends list */
.wpaigen-keywords-list::-webkit-scrollbar {
    width: 6px;
}

.wpaigen-keywords-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.wpaigen-keywords-list::-webkit-scrollbar-thumb {
    background: rgba(100, 255, 218, 0.3);
    border-radius: 3px;
}

.wpaigen-keywords-list::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 255, 218, 0.5);
}

/* Responsive adjustments for trends */
@media (max-width: 768px) {
    .wpaigen-trends-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .wpaigen-trends-title {
        font-size: 1.2em;
        justify-content: center;
        text-align: center;
    }

    .wpaigen-refresh-btn {
        align-self: center;
        min-width: 100px;
        height: 36px;
    }

    .wpaigen-keywords-list {
        max-height: 200px;
    }

    .wpaigen-keyword-item {
        font-size: 1em;
        padding: 12px 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .wpaigen-keyword-item .keyword-stats {
        margin-left: 0;
        font-size: 0.85em;
        align-self: flex-end;
    }

    .wpaigen-keyword-item .keyword-text {
        font-size: 1em;
        width: 100%;
    }
}

/* Keyword input highlight effect */
.wpaigen-form-group input.highlight {
    border-color: #64ffda !important;
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.3) !important;
    animation: highlightPulse 1s ease-out;
}

@keyframes highlightPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Schedule Page Styles */
.wpaigen-schedule-page {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #2a2a4a 0%, #1a1a2e 100%);
    color: #e0e0f0;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.wpaigen-schedule-page .wp-heading-inline {
    color: #fff;
    font-size: 2.2em;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(100, 255, 255, 0.3);
}

/* Schedule Filters */
.wpaigen-filters {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.wpaigen-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpaigen-filter-group label {
    font-weight: 500;
    color: #a0a0ff;
    white-space: nowrap;
    font-size: 14px;
}

.wpaigen-filter-group select,
.wpaigen-filter-group input[type="text"] {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff !important;
    padding: 8px 12px;
    border-radius: 4px;
    min-width: 150px;
    transition: all 0.3s ease;
}

.wpaigen-filter-group input[type="text"] {
    min-width: 200px;
}

.wpaigen-filter-group input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.wpaigen-filter-group select:hover,
.wpaigen-filter-group input[type="text"]:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.wpaigen-filter-group select:focus,
.wpaigen-filter-group input[type="text"]:focus {
    outline: none;
    border-color: #64ffda;
    box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);
}

.wpaigen-filter-group select option {
    background: #2a2a4a;
    color: #fff;
}

.wpaigen-filter-group select:focus {
    background: rgba(100, 255, 218, 0.1);
    border-color: rgba(100, 255, 218, 0.4);
    outline: none;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.2);
}

.wpaigen-filter-group .button {
    background: rgba(100, 255, 218, 0.15);
    border: 1px solid rgba(100, 255, 218, 0.3);
    color: #64ffda;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.wpaigen-filter-group .button:hover {
    background: rgba(100, 255, 218, 0.25);
    border-color: rgba(100, 255, 218, 0.5);
    color: #ffffff;
}

/* Fix text contrast in cells */
.wpaigen-schedule-table td a {
    color: #64ffda;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wpaigen-schedule-table td a:hover {
    color: #ffffff;
}

/* Schedule Stats */
.wpaigen-schedule-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 255, 218, 0.2);
    border-color: rgba(100, 255, 218, 0.3);
}

.stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #a0a0ff;
}

.stat-number {
    font-size: 2.2em;
    font-weight: 700;
    color: #64ffda;
    display: block;
}

/* Schedule Table */
.wpaigen-table-container {
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.wpaigen-schedule-table {
    margin: 0;
    background: rgba(26, 26, 46, 0.9);
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.wpaigen-schedule-table thead th {
    background: rgba(42, 42, 74, 0.95);
    border-bottom: 2px solid #64ffda;
    color: #ffffff;
    font-weight: 600;
    padding: 15px;
    text-align: left;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wpaigen-schedule-table tbody td {
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    padding: 15px;
    color: #ffffff;
    font-weight: 400;
    background: rgba(26, 26, 46, 0.8);
}

.wpaigen-schedule-table tbody tr:nth-child(even) td {
    background: rgba(42, 42, 74, 0.6);
}


.wpaigen-schedule-table tbody tr:last-child td {
    border-bottom: 1px solid rgba(100, 255, 218, 0.2);
}

/* Override WordPress default table styling */
.wp-list-table.wpaigen-schedule-table {
    border: none;
    border-spacing: 0;
}

.wp-list-table.wpaigen-schedule-table th,
.wp-list-table.wpaigen-schedule-table td {
    border-left: none;
    border-right: none;
}

.wp-list-table.wpaigen-schedule-table .manage-column {
    border-bottom: none;
    color: #fff;
}

/* Status Badges */
.wpaigen-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-processing {
    background: rgba(0, 123, 255, 0.15);
    color: #007bff;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.status-published {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-failed {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.status-cancelled {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

/* Form Actions for Generate Page */
.wpaigen-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.wpaigen-form-actions .button {
    flex: 1;
    justify-content: center;
}

/* Schedule Modal Specific */
.wpaigen-schedule-modal-content {
    max-width: 600px;
    width: 90%;
}

.wpaigen-schedule-preview {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-item:last-child {
    border-bottom: none;
}

.preview-item strong {
    color: #a0a0ff;
    font-weight: 500;
}

.preview-item span {
    color: #e0e0f0;
}

/* Table Action Buttons */
.wpaigen-schedule-table .button {
    background: rgba(100, 255, 218, 0.15);
    border: 1px solid rgba(100, 255, 218, 0.3);
    color: #64ffda !important;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-right: 5px;
}

.wpaigen-schedule-table .button:hover {
    background: rgba(100, 255, 218, 0.25);
    border-color: rgba(100, 255, 218, 0.5);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.wpaigen-schedule-table .button.button-small {
    padding: 4px 8px;
    font-size: 0.8em;
}

/* Pagination */
.wpaigen-pagination {
    text-align: center;
    margin-top: 20px;
}

.wpaigen-pagination .button {
    background: rgba(100, 255, 218, 0.15);
    border: 1px solid rgba(100, 255, 218, 0.3);
    color: #64ffda !important;
    padding: 10px 30px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.wpaigen-pagination .button:hover {
    background: rgba(100, 255, 218, 0.25);
    border-color: rgba(100, 255, 218, 0.5);
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Enhanced Pagination */
.wpaigen-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wpaigen-pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wpaigen-pagination-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wpaigen-page-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
}

.wpaigen-page-number {
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.2);
    color: #64ffda;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
    min-width: 36px;
    text-align: center;
}

.wpaigen-page-number:hover {
    background: rgba(100, 255, 218, 0.2);
    border-color: rgba(100, 255, 218, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

.wpaigen-page-number.active {
    background: #64ffda;
    border-color: #64ffda;
    color: #1a1a2e;
    font-weight: 600;
}

.wpaigen-page-number.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.wpaigen-pagination-info {
    color: #a0a0ff;
    font-size: 14px;
    font-weight: 500;
}

.wpaigen-pagination-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    color: #64ffda;
    font-size: 14px;
}

.wpaigen-pagination-loading .spinner-border {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(100, 255, 218, 0.2);
    border-top: 2px solid #64ffda;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Text center utility */
.text-center {
    text-align: center;
}

/* Responsive adjustments for schedule page */
@media (max-width: 768px) {
    .wpaigen-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .wpaigen-filter-group {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .wpaigen-filter-group label {
        flex-basis: 100%;
        margin-bottom: 5px;
    }

    .wpaigen-filter-group select,
    .wpaigen-filter-group input[type="text"] {
        min-width: 100%;
        flex: 1;
    }

    .wpaigen-results-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .wpaigen-pagination-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .wpaigen-pagination-controls {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .wpaigen-page-numbers {
        justify-content: center;
        flex-wrap: wrap;
    }

    .wpaigen-page-number {
        min-width: 32px;
        padding: 4px 8px;
        font-size: 13px;
    }

    .wpaigen-pagination-controls .button {
        width: 100%;
        justify-content: center;
    }

    .wpaigen-schedule-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-number {
        font-size: 1.8em;
    }

    .wpaigen-schedule-table {
        font-size: 0.9em;
    }

    .wpaigen-schedule-table thead th,
    .wpaigen-schedule-table tbody td {
        padding: 10px;
    }

    .wpaigen-form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .wpaigen-schedule-stats {
        grid-template-columns: 1fr 1fr;
    }

    .wpaigen-table-container {
        overflow-x: auto;
    }

    .wpaigen-schedule-table {
        min-width: 600px;
    }
}

/* Button visibility during loading */
.wpaigen-hidden {
    display: none !important;
}