/* =========================================================
   EZ Horoscope Professional – Admin Settings Styling
   ========================================================= */

/* ====== Layout Container ====== */
.ezhp-settings-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 30px 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-width: 950px;
    margin-top: 30px;
    font-family: "Inter", "Segoe UI", Roboto, sans-serif;
}

/* ====== Page Title ====== */
.ezhp-page-title {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #673ab7, #00bcd4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

/* ====== Subtitle ====== */
.ezhp-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
}

/* ====== Tabs ====== */
.ezhp-tab-wrapper .nav-tab {
    border-radius: 6px 6px 0 0;
    background: #f8f8f8;
    border: 1px solid #ddd;
    margin-right: 4px;
    transition: all 0.25s ease;
    font-weight: 500;
    color: #444;
}

.ezhp-tab-wrapper .nav-tab:hover {
    background: #f0f0f0;
}

.ezhp-tab-wrapper .nav-tab-active {
    background: linear-gradient(135deg, #673ab7, #00bcd4);
    color: #fff;
    border-color: #673ab7;
    box-shadow: 0 2px 4px rgba(103, 58, 183, 0.2);
}

/* ====== Tab Content Box ====== */
.ezhp-tab-content {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 30px 35px;
}

/* ====== Section Blocks ====== */
.ezhp-section {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 25px;
}

.ezhp-section h3 {
    margin-top: 0;
    font-size: 17px;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
    margin-bottom: 15px;
}

/* ====== Inputs & Dropdowns ====== */
input[type="text"],
select,
textarea {
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: all 0.2s ease;
    padding: 6px 8px;
    width: 100%;
    max-width: 400px;
    font-size: 14px;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
    border-color: #673ab7;
    box-shadow: 0 0 0 3px rgba(103, 58, 183, 0.2);
    outline: none;
}

/* ====== Buttons ====== */
.wp-core-ui .button-primary,
.wp-core-ui .button {
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 600;
}

.wp-core-ui .button-primary {
    background: linear-gradient(135deg, #673ab7, #00bcd4);
    border: none;
    color: #fff;
}

.wp-core-ui .button-primary:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.wp-core-ui .button:hover {
    transform: translateY(-1px);
}

/* ====== Shortcode Box ====== */
#ezhp_shortcode_result {
    background: #f7f7ff;
    border: 1px solid #cfcfed;
    border-radius: 5px;
    padding: 10px 12px;
    font-family: Consolas, monospace;
    font-size: 13px;
    color: #333;
}

/* ====== Table Layout ====== */
.form-table th {
    width: 220px;
    font-weight: 600;
    color: #333;
    vertical-align: top;
}

.form-table p.description {
    box-shadow: inset 3px 0 0 #673ab7;
    padding-left: 8px;
    color: #555;
    font-size: 13px;
}

/* ====== Error / Notice ====== */
.ezhp-error {
    color: #d32f2f;
    background: #fff2f2;
    border-left: 4px solid #f44336;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 6px;
}

/* ====== Connection Status Badges ====== */
.ezhp-status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 6px;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ezhp-status-badge.connected {
    background: #4caf50;
}

.ezhp-status-badge.disconnected {
    background: #f44336;
}

/* ====== Transitions & Subtle Animations ====== */
.ezhp-tab-content,
.ezhp-section {
    transition: box-shadow 0.25s ease;
}

.ezhp-section:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* ====== Footer Cleanup ====== */
#wpfooter {
    color: #999;
}

/* Automation Modal Styles */
.ezhp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
}

.ezhp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.ezhp-modal-container {
    position: relative;
    max-width: 800px;
    max-height: 80vh;
    margin: 10vh auto;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.ezhp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #dcdcde;
    background: #f6f7f7;
    border-radius: 4px 4px 0 0;
}

.ezhp-modal-header h2 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
    color: #1d2327;
}

.ezhp-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #787c82;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.ezhp-modal-close:hover {
    color: #d63638;
}

.ezhp-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

#ezhp-modal-summary {
    margin-bottom: 15px;
    padding: 12px 15px;
    background: #f0f6fc;
    border-left: 4px solid #72aee6;
    border-radius: 2px;
}

#ezhp-modal-summary.has-errors {
    background: #fcf0f1;
    border-left-color: #d63638;
}

#ezhp-modal-summary.all-success {
    background: #edfaef;
    border-left-color: #00a32a;
}

.ezhp-success-message {
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    padding: 12px 16px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.ezhp-success-message a {
    color: #2271b1;
    text-decoration: underline;
}

#ezhp-modal-results-table {
    margin-top: 10px;
}

#ezhp-modal-results-table th,
#ezhp-modal-results-table td {
    padding: 10px 12px;
}

#ezhp-modal-results-table .status-created {
    color: #00a32a;
    font-weight: 500;
}

#ezhp-modal-results-table .status-error {
    color: #d63638;
    font-weight: 500;
}

.ezhp-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #dcdcde;
    background: #f6f7f7;
    border-radius: 0 0 4px 4px;
    text-align: right;
}

.ezhp-modal-footer .button {
    min-width: 100px;
}
