/* ========================================
   1. PLUGIN-WIDE STYLES
   ======================================== */

/* --- General Wrap --- */
/* Updated wrapper class to match admin-hooks.php */
.dizetech-rem-plugin-admin .dizetech_rem_dashboard-wrap {
    max-width: 1200px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
.dizetech-rem-plugin-admin .dizetech_rem_dashboard-wrap h1 {
    font-size: 2.2em;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 10px;
}
.dizetech-rem-plugin-admin .dizetech_rem_dashboard-wrap > p {
    font-size: 1.1em;
    color: #50575e;
}

/* --- General Card Style --- */
.dizetech-rem-plugin-admin .dizetech_rem_card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 30, 80, 0.05);
    border: 1px solid #e0e0e0;
}
.dizetech-rem-plugin-admin .dizetech_rem_card h2, 
.dizetech-rem-plugin-admin .dizetech_rem_card h3 {
    font-size: 1.3em;
    font-weight: 600;
    color: #1d2327;
    margin-top: 0;
    margin-bottom: 20px;
}

/* ========================================
   2. DASHBOARD PAGE
   ======================================== */

/* --- Stat Boxes Grid --- */
.dizetech-rem-plugin-admin #dizetech_rem_stat-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

/* --- Individual Stat Box --- */
.dizetech-rem-plugin-admin .dizetech_rem_stat-box {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 4px 15px rgba(0, 30, 80, 0.05);
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.dizetech-rem-plugin-admin .dizetech_rem_stat-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 30, 80, 0.08);
}

.dizetech-rem-plugin-admin .dizetech_rem_box-content { flex-grow: 1; }
.dizetech-rem-plugin-admin .dizetech_rem_box-value {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.1;
    color: #1d2327;
}
.dizetech-rem-plugin-admin .dizetech_rem_box-label {
    font-size: 15px;
    font-weight: 500;
    color: #50575e;
    margin-top: 8px;
}

/* Icon */
.dizetech-rem-plugin-admin .dizetech_rem_box-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
    flex-shrink: 0;
}
.dizetech-rem-plugin-admin .dizetech_rem_box-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

/* Icon Colors */
.dizetech-rem-plugin-admin .dizetech_rem_stat-box.box-active .dizetech_rem_box-icon { background-color: #e6f1fa; }
.dizetech-rem-plugin-admin .dizetech_rem_stat-box.box-active .dizetech_rem_box-icon .dashicons { color: #0073aa; }

.dizetech-rem-plugin-admin .dizetech_rem_stat-box.box-expiring .dizetech_rem_box-icon { background-color: #fff8e5; }
.dizetech-rem-plugin-admin .dizetech_rem_stat-box.box-expiring .dizetech_rem_box-icon .dashicons { color: #ffb900; }

.dizetech-rem-plugin-admin .dizetech_rem_stat-box.box-reminded .dizetech_rem_box-icon { background-color: #e6f6e9; }
.dizetech-rem-plugin-admin .dizetech_rem_stat-box.box-reminded .dizetech_rem_box-icon .dashicons { color: #00a32a; }

.dizetech-rem-plugin-admin .dizetech_rem_stat-box.box-draft .dizetech_rem_box-icon { background-color: #f0f0f1; }
.dizetech-rem-plugin-admin .dizetech_rem_stat-box.box-draft .dizetech_rem_box-icon .dashicons { color: #757575; }


/* --- 70/30 Layout --- */
.dizetech-rem-plugin-admin .dizetech_rem_dashboard-bottom-section {
    margin-top: 30px;
    display: flex;
    align-items: flex-start;
    gap: 25px;
}
.dizetech-rem-plugin-admin .dizetech_rem_main-content {
    flex: 2; /* Approx 66-70% */
    min-width: 0; /* Prevent flex-shrink issues */
}
.dizetech-rem-plugin-admin .dizetech_rem_sidebar-content {
    flex: 1; /* Approx 30-33% */
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* --- Recent Renewals Table --- */
.dizetech-rem-plugin-admin .dizetech_rem_recent-table {
    width: 100%;
    border-collapse: collapse;
}
.dizetech-rem-plugin-admin .dizetech_rem_recent-table th {
    text-align: left;
    font-weight: 600;
    color: #50575e;
    font-size: 13px;
    padding: 12px 10px;
    border-bottom: 2px solid #f0f0f1;
}
.dizetech-rem-plugin-admin .dizetech_rem_recent-table td {
    padding: 16px 10px;
    border-bottom: 1px solid #f6f7f7;
    font-size: 14px;
    color: #3c434a;
}
.dizetech-rem-plugin-admin .dizetech_rem_recent-table tbody tr:last-child td {
    border-bottom: none;
}
.dizetech-rem-plugin-admin .dizetech_rem_recent-table a {
    text-decoration: none;
    font-weight: 500;
    color: #0073aa;
}
.dizetech-rem-plugin-admin .dizetech_rem_recent-table a:hover {
    color: #005a87;
}

/* --- Sidebar Links --- */
.dizetech-rem-plugin-admin .dizetech_rem_sidebar-links {
    list-style-type: none;
    padding: 0;
    margin: -5px 0 0;
}
.dizetech-rem-plugin-admin .dizetech_rem_sidebar-links li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    text-decoration: none;
    font-weight: 500;
    color: #1d2327;
    border-bottom: 1px solid #f6f7f7;
}
.dizetech-rem-plugin-admin .dizetech_rem_sidebar-links li:last-child a {
    border-bottom: none;
}
.dizetech-rem-plugin-admin .dizetech_rem_sidebar-links li a:hover {
    color: #0073aa;
}
.dizetech-rem-plugin-admin .dizetech_rem_sidebar-links .dashicons {
    color: #757575;
}

/* --- Upgrade Card --- */
.dizetech-rem-plugin-admin .dizetech_rem_upgrade-card {
    background: #f0f6fc; /* Light blue background */
    border-color: #d0e5f2;
    text-align: center;
}
.dizetech-rem-plugin-admin .dizetech_rem_upgrade-card .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #0073aa;
}
.dizetech-rem-plugin-admin .dizetech_rem_upgrade-card h3 {
    color: #0073aa;
}
.dizetech-rem-plugin-admin .dizetech_rem_upgrade-card p {
    font-size: 14px;
    color: #3c434a;
    margin-bottom: 20px;
    text-align: left; 
}
.dizetech-rem-plugin-admin .dizetech_rem_upgrade-card .dizetech_rem_pro-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
}
.dizetech-rem-plugin-admin .dizetech_rem_upgrade-card .dizetech_rem_pro-features li {
    font-size: 14px;
    color: #3c434a;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dizetech-rem-plugin-admin .dizetech_rem_upgrade-card .dizetech_rem_pro-features .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #00a32a; /* Green check */
}
.dizetech-rem-plugin-admin .dizetech_rem_upgrade-button {
    width: 100%;
    text-align: center;
    font-size: 14px !important;
    padding: 10px !important;
    height: auto !important;
    line-height: 1.2 !important;
}

/* --- Responsive Stack --- */
@media (max-width: 960px) {
    .dizetech-rem-plugin-admin .dizetech_rem_dashboard-bottom-section {
        flex-direction: column;
    }
}

/* ========================================
   3. 'ALL REMINDERS' LIST TABLE STYLES
   ======================================== */
.dizetech-rem-plugin-admin .dizetech_rem_status-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    color: #fff;
    background-color: #949494; /* Default */
}
.dizetech-rem-plugin-admin .dizetech_rem_status-badge.status-pending { background-color: #0073aa; } /* Blue */
.dizetech-rem-plugin-admin .dizetech_rem_status-badge.status-reminded { background-color: #ffb900; } /* Yellow */
.dizetech-rem-plugin-admin .dizetech_rem_status-badge.status-renewed { background-color: #00a32a; } /* Green */
.dizetech-rem-plugin-admin .dizetech_rem_status-badge.status-cancelled { background-color: #757575; } /* Gray */

.dizetech-rem-plugin-admin .dizetech_rem_delete-link {
    color: #d63638;
}
.dizetech-rem-plugin-admin .dizetech_rem_delete-link:hover {
    color: #a0282a;
}

/* Days Left Badge */
.dizetech-rem-plugin-admin .dizetech_rem_days-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    color: #333;
    background-color: #f0f0f1; /* Default - No color */
}
.dizetech-rem-plugin-admin .dizetech_rem_days-badge.dizetech_rem_days-safe {
    background-color: #e6f6e9; /* Green */
    color: #006400;
}
.dizetech-rem-plugin-admin .dizetech_rem_days-badge.dizetech_rem_days-warning {
    background-color: #fdeeee; /* Red */
    color: #c00;
}
.dizetech-rem-plugin-admin .dizetech_rem_days-badge.dizetech_rem_days-overdue {
    background-color: #fff8e5; /* Yellow */
    color: #5f4d00;
}

.dizetech-rem-plugin-admin .dizetech_rem_send-reminder {
    color: #2271b1;
    text-decoration: none;
}
.dizetech-rem-plugin-admin .dizetech_rem_send-reminder:hover {
    color: #135e96;
}

/* ========================================
   4. 'SETTINGS' PAGE
   ======================================== */
.dizetech-rem-plugin-admin .dizetech_rem_settings-form .form-table { max-width: 900px; }
.dizetech-rem-plugin-admin .dizetech_rem_settings-form .form-table th { width: 250px; }
.dizetech-rem-plugin-admin .dizetech_rem_settings-form .form-table p.description { font-size: 13px; }
.dizetech-rem-plugin-admin .dizetech_rem_settings-form input[type="text"],
.dizetech-rem-plugin-admin .dizetech_rem_settings-form input[type="email"],
.dizetech-rem-plugin-admin .dizetech_rem_settings-form input[type="number"],
.dizetech-rem-plugin-admin .dizetech_rem_settings-form select { min-width: 300px; }
.dizetech-rem-plugin-admin .dizetech_rem_settings-form .dizetech_rem_small-input { min-width: 80px; width: 80px; }
.dizetech-rem-plugin-admin .dizetech_rem_settings-form .wp-editor-wrap { max-width: 700px; }
.dizetech-rem-plugin-admin .dizetech_rem_placeholder-box { background: #f9f9f9; border: 1px solid #ddd; border-radius: 4px; padding: 10px 15px; max-width: 700px; }
.dizetech-rem-plugin-admin .dizetech_rem_placeholder-box code { display: inline-block; margin: 0 5px 5px 0; padding: 2px 6px; background: #eee; border-radius: 3px; }

/* Test Email styles */
.dizetech-rem-plugin-admin #dizetech_rem_test-email-spinner { vertical-align: middle; margin-left: 10px; display: none; }
.dizetech-rem-plugin-admin #dizetech_rem_test-email-message { margin-top: 15px; display: none; }
.dizetech-rem-plugin-admin #dizetech_rem_test-email-message.notice-success { color: #00a32a; }
.dizetech-rem-plugin-admin #dizetech_rem_test-email-message.notice-error { color: #d63638; }

/* ========================================
   5. 'UPGRADE' PAGE
   ======================================== */
.dizetech-rem-plugin-admin .dizetech_rem_upgrade-wrap {
    max-width: 950px;
}

/* --- Header --- */
.dizetech-rem-plugin-admin .dizetech_rem_upgrade-header {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 30, 80, 0.05);
}
.dizetech-rem-plugin-admin .dizetech_rem_upgrade-header h1 {
    font-size: 2.2em;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dizetech-rem-plugin-admin .dizetech_rem_upgrade-header h1 .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    margin-right: 15px;
    color: #0073aa;
}
.dizetech-rem-plugin-admin .dizetech_rem_subtitle {
    font-size: 1.2em;
    color: #50575e;
    margin: 0;
}

/* --- CTA Box --- */
.dizetech-rem-plugin-admin .dizetech_rem_upgrade-cta-box {
    background: #0073aa;
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dizetech-rem-plugin-admin .dizetech_rem_cta-content {
    flex: 2;
}
.dizetech-rem-plugin-admin .dizetech_rem_cta-content h2 {
    color: #fff;
    font-size: 1.6em;
    margin: 0 0 10px;
}
.dizetech-rem-plugin-admin .dizetech_rem_cta-content p {
    font-size: 14px;
    color: #e0e0e0;
    margin: 0;
    max-width: 90%;
}
.dizetech-rem-plugin-admin .dizetech_rem_cta-action {
    flex: 1;
    text-align: right;
}
.dizetech-rem-plugin-admin .dizetech_rem_cta-action .button-hero {
    background: #fff;
    color: #0073aa;
    font-weight: 600;
    font-size: 16px !important;
    padding: 12px 25px !important;
    height: auto !important;
    line-height: 1.5 !important;
}
.dizetech-rem-plugin-admin .dizetech_rem_cta-action .button-hero:hover {
    background: #f0f6fc;
    color: #005a87;
}
.dizetech-rem-plugin-admin .dizetech_rem_cta-guarantee {
    font-size: 12px;
    color: #e0e0e0;
    margin-top: 10px;
    font-style: italic;
}

/* --- Feature Table --- */
.dizetech-rem-plugin-admin .dizetech_rem_upgrade-wrap h2 {
    font-size: 1.8em;
    font-weight: 600;
    margin: 30px 0 15px;
    text-align: center;
}
.dizetech-rem-plugin-admin .dizetech_rem_feature-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 30, 80, 0.05);
    overflow: hidden;
}
.dizetech-rem-plugin-admin .dizetech_rem_feature-table th, 
.dizetech-rem-plugin-admin .dizetech_rem_feature-table td {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}
.dizetech-rem-plugin-admin .dizetech_rem_feature-table th {
    background: #f9f9f9;
    font-size: 14px;
    font-weight: 600;
    color: #3c434a;
}
.dizetech-rem-plugin-admin .dizetech_rem_feature-table td {
    font-size: 14px;
}
.dizetech-rem-plugin-admin .dizetech_rem_feature-table td:nth-child(2), 
.dizetech-rem-plugin-admin .dizetech_rem_feature-table th:nth-child(2) {
    text-align: center;
}
.dizetech-rem-plugin-admin .dizetech_rem_feature-table td:nth-child(3), 
.dizetech-rem-plugin-admin .dizetech_rem_feature-table th:nth-child(3) {
    text-align: center;
    background: #f0f6fc;
}
.dizetech-rem-plugin-admin .dizetech_rem_feature-table td strong {
    font-size: 1.1em;
    font-weight: 600;
    color: #1d2327;
}
.dizetech-rem-plugin-admin .dizetech_rem_feature-table td span {
    font-size: 13px;
    color: #50575e;
}
.dizetech-rem-plugin-admin .dizetech_rem_feature-table .dizetech_rem_yes {
    font-size: 20px;
}
.dizetech-rem-plugin-admin .dizetech_rem_feature-table .dizetech_rem_no {
    font-size: 18px;
    opacity: 0.5;
}
.dizetech-rem-plugin-admin .dizetech_rem_feature-table tfoot td {
    text-align: center;
    background: #f9f9f9;
    border-bottom: 0;
}
.dizetech-rem-plugin-admin .dizetech_rem_feature-table tfoot td:first-child {
    background: #fff;
    border-right: 1px solid #e0e0e0;
}

/* Responsive */
@media (max-width: 782px) {
    .dizetech-rem-plugin-admin .dizetech_rem_upgrade-cta-box {
        flex-direction: column;
        text-align: center;
    }
    .dizetech-rem-plugin-admin .dizetech_rem_cta-content {
        margin-bottom: 25px;
    }
    .dizetech-rem-plugin-admin .dizetech_rem_cta-content p {
        max-width: 100%;
    }
    .dizetech-rem-plugin-admin .dizetech_rem_cta-action {
        text-align: center;
        width: 100%;
    }
    .dizetech-rem-plugin-admin .dizetech_rem_feature-table th,
    .dizetech-rem-plugin-admin .dizetech_rem_feature-table td {
        padding: 12px;
    }
}

/* ========================================
   6. 'ADD NEW' (META BOX) STYLES
   ======================================== */

/* Style for each individual notification block */
.dizetech-rem-plugin-admin .notification-row {
    background: #fdfdfd;
    border: 1px solid #ccd0d4;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    position: relative;
}
.dizetech-rem-plugin-admin .notification-field {
    margin-bottom: 12px;
}
.dizetech-rem-plugin-admin .notification-field > label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}
.dizetech-rem-plugin-admin .notification-field label {
    display: inline-block;
    font-weight: normal;
    margin-right: 15px;
}
.dizetech-rem-plugin-admin .notification-field .large-text { width: 100%; }
.dizetech-rem-plugin-admin .notification-field .regular-text { width: 70%; }
.dizetech-rem-plugin-admin .notification-field .small-text { width: 60px; }

.dizetech-rem-plugin-admin .notification-row .remove-notification {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #a00;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}
.dizetech-rem-plugin-admin .notification-row .remove-notification:hover {
    color: #f00;
}
.dizetech-rem-plugin-admin #add-notification {
    margin-top: 10px;
}


/* ========================================
   7. 'SETTINGS' PAGE
   ======================================== */

.dizetech-rem-plugin-admin .dizetech_rem_settings-form .form-table { 
    max-width: 900px; 
}
.dizetech-rem-plugin-admin .dizetech_rem_settings-form .form-table th { 
    width: 250px; 
    padding: 20px 10px 20px 0;
}
.dizetech-rem-plugin-admin .dizetech_rem_settings-form .form-table p.description { 
    font-size: 13px; 
}
.dizetech-rem-plugin-admin .dizetech_rem_settings-form input[type="text"],
.dizetech-rem-plugin-admin .dizetech_rem_settings-form input[type="email"],
.dizetech-rem-plugin-admin .dizetech_rem_settings-form input[type="number"],
.dizetech-rem-plugin-admin .dizetech_rem_settings-form select { 
    min-width: 300px; 
}
.dizetech-rem-plugin-admin .dizetech_rem_settings-form .dizetech_rem_small-input { 
    min-width: 80px; 
    width: 80px; 
}
.dizetech-rem-plugin-admin .dizetech_rem_settings-form .wp-editor-wrap { 
    max-width: 700px; 
}
.dizetech-rem-plugin-admin .dizetech_rem_placeholder-box { 
    background: #f9f9f9; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
    padding: 10px 15px; 
    max-width: 700px; 
}
.dizetech-rem-plugin-admin .dizetech_rem_placeholder-box code { 
    display: inline-block; 
    margin: 0 5px 5px 0; 
    padding: 2px 6px; 
    background: #eee; 
    border-radius: 3px; 
}

/* Tab Content */
.dizetech-rem-plugin-admin .nav-tab-wrapper {
    margin-bottom: 20px;
}

/* Test Email styles */
.dizetech-rem-plugin-admin #dizetech_rem_test_email_spinner { 
    vertical-align: middle; 
    margin-left: 10px; 
    display: none; 
}
.dizetech-rem-plugin-admin #dizetech_rem_test_email_message { 
    margin-top: 15px; 
    display: none; 
    font-weight: 600;
}
.dizetech-rem-plugin-admin #dizetech_rem_test_email_message.notice-success { 
    color: #00a32a; 
}
.dizetech-rem-plugin-admin #dizetech_rem_test_email_message.notice-error { 
    color: #d63638; 
}


/* ========================================
   8. 'ADD NEW' (META BOX) - NEW STYLES
   ======================================== */
/* These classes (rem-...) were kept consistent with meta-boxes.php */
.dizetech-rem-plugin-admin .rem-template-buttons {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.dizetech-rem-plugin-admin .rem-template-buttons label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}
.dizetech-rem-plugin-admin .rem-template-buttons .button {
    margin-right: 8px;
}