/* Dashboard Styles */
.cnbm-dashboard {
    margin-right: 20px;
}

.cnbm-plan-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
    vertical-align: middle;
}

.cnbm-plan-free {
    background: #f0f0f1;
    color: #646970;
}

.cnbm-plan-starter {
    background: #e7f5ff;
    color: #0073aa;
}

.cnbm-plan-pro {
    background: #f3e5f5;
    color: #7b1fa2;
}

.cnbm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.cnbm-stat-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: box-shadow 0.2s;
}

.cnbm-stat-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cnbm-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cnbm-stat-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.cnbm-stat-content {
    flex: 1;
    overflow: hidden;
}

.cnbm-stat-label {
    font-size: 13px;
    color: #646970;
    margin-bottom: 5px;
}

.cnbm-stat-value {
    font-size: 28px;
    font-weight: 600;
    color: #1d2327;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cnbm-stat-meta {
    font-size: 12px;
    color: #787c82;
    margin-top: 5px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.cnbm-warning-badge {
    background: #fcf9e8;
    color: #996800;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.cnbm-dashboard-columns {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 1200px) {
    .cnbm-dashboard-columns {
        grid-template-columns: 1fr;
    }
}

.cnbm-dashboard-card {
    background: #fff;
    color: #1d2327;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.cnbm-send-now-card h2 {
    color: #1d2327;
}

.cnbm-send-now-card p {
    color: #3c434a;
}

.cnbm-send-now-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .cnbm-send-now-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

.cnbm-send-now-info {
    flex: 1;
    min-width: 200px;
}

.cnbm-next-send {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #50575e;
    margin-top: 10px;
}

.cnbm-next-send .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.cnbm-send-now-action {
    text-align: center;
    flex-shrink: 0;
}

.cnbm-send-now-btn {
    min-width: 150px;
    white-space: nowrap;
}

.cnbm-send-now-btn .dashicons {
    margin-top: 3px;
    vertical-align: middle;
}

#cnbm-send-now-form .spinner {
    display: none;
    vertical-align: middle;
    margin-left: 5px;
}

#cnbm-send-now-form.cnbm-sending .spinner {
    display: inline-block;
    visibility: visible;
}

#cnbm-send-now-form.cnbm-sending button {
    opacity: 0.6;
    pointer-events: none;
}

/* Quick Actions */
.cnbm-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.cnbm-action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    text-decoration: none;
    color: #2c3338;
    font-weight: 500;
    transition: all 0.2s;
    text-align: center;
    justify-content: center;
}

.cnbm-action-button:hover {
    background: #fff;
    border-color: #2271b1;
    color: #2271b1;
}

.cnbm-action-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.cnbm-upsell-action {
    color: #777 !important;
    background: #fafafa !important;
    border-color: #ddd !important;
    cursor: default !important;
    opacity: 0.7;
}

.cnbm-upsell-action:hover {
    color: #555 !important;
    border-color: #ccc !important;
}

.cnbm-upsell-action .dashicons {
    color: #aaa !important;
}

/* Recent List */
.cnbm-recent-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 -20px;
}

.cnbm-recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-bottom: 1px solid #f0f0f1;
}

.cnbm-recent-item:last-child {
    border-bottom: none;
}

.cnbm-recent-avatar img {
    border-radius: 50%;
}

.cnbm-recent-info {
    flex: 1;
    overflow: hidden;
}

.cnbm-recent-name {
    font-weight: 500;
    color: #1d2327;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cnbm-recent-email {
    font-size: 12px;
    color: #646970;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cnbm-recent-date {
    font-size: 12px;
    color: #787c82;
    flex-shrink: 0;
    white-space: nowrap;
}

.cnbm-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: middle;
}

.cnbm-badge-warning {
    background: #fff8e1;
    color: #ff8f00;
    border: 1px solid #ffecb3;
}

.cnbm-badge-danger {
    background: #fce4ec;
    color: #ad1457;
    border: 1px solid #f8bbd0;
}

.cnbm-view-all {
    display: block;
    text-align: center;
    margin: 15px 0 0 0;
    text-decoration: none;
    color: #2271b1;
    font-weight: 500;
}

.cnbm-view-all:hover {
    color: #135e96;
}

/* Empty State */
.cnbm-empty-state {
    text-align: center;
    padding: 40px 20px;
}

.cnbm-empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #a7aaad;
    margin-bottom: 15px;
}

.cnbm-empty-state p {
    color: #646970;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Status List */
.cnbm-status-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cnbm-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f1;
}

.cnbm-status-item:last-child {
    border-bottom: none;
}

.cnbm-status-label {
    font-size: 13px;
    color: #646970;
    padding-right: 10px;
}

.cnbm-status-value {
    font-size: 13px;
    font-weight: 500;
    color: #1d2327;
    text-align: right;
}

.cnbm-status-value small {
    font-size: 11px;
    color: #777;
    display: block;
    font-weight: 400;
}

.cnbm-status-active {
    color: #00a32a !important;
}

.cnbm-status-inactive {
    color: #d63638 !important;
}

/* Upgrade Card */
.cnbm-upgrade-card {
    background: linear-gradient(135deg, #4e65d6 0%, #6f42c1 100%);
    color: #fff;
    border: none;
}

.cnbm-upgrade-card h3 {
    color: #fff;
}

.cnbm-feature-list {
    list-style: none;
    margin: 15px 0;
    padding: 0;
}

.cnbm-feature-list li {
    padding: 6px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

/* Help Links */
.cnbm-help-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cnbm-help-links li {
    margin: 0;
}

.cnbm-help-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    text-decoration: none;
    color: #2c3338;
    border-radius: 4px;
    transition: background 0.2s;
}

.cnbm-help-links a:hover {
    background: #f0f0f1;
    color: #2271b1;
}

.cnbm-help-links .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

/* Upgrade Prompt in Stats */
.cnbm-upgrade-prompt {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    text-align: left;
    gap: 10px;
    background-color: #f9f9f9;
    padding: 15px;
}

.cnbm-upgrade-prompt p {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #50575e;
}

.cnbm-upgrade-prompt .button {
    margin-top: 5px;
}

/* Subscribe Form Documentation */
.cnbm-code-box {
    position: relative;
    background: #f6f7f7;
    padding: 12px 50px 12px 12px;
    border-radius: 4px;
    border: 1px solid #dcdcde;
    margin: 10px 0;
}

.cnbm-code-box code {
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    color: #d63638;
    background: transparent;
    padding: 0;
}

.cnbm-copy-btn {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cnbm-copy-btn:hover {
    background: #135e96;
}

.cnbm-copy-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.cnbm-copy-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #fff;
}

.cnbm-copy-btn.cnbm-copied {
    background: #00a32a;
}

.cnbm-copy-btn.cnbm-copied::after {
    content: '✓';
    position: absolute;
    font-size: 14px;
}

.cnbm-form-params summary:hover {
    text-decoration: underline;
}

.cnbm-form-params[open] summary .dashicons {
    color: #646970;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Status List */
.cnbm-status-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cnbm-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f1;
}

.cnbm-status-item:last-child {
    border-bottom: none;
}

.cnbm-status-label {
    font-size: 13px;
    color: #646970;
    padding-right: 10px;
}

.cnbm-status-value {
    font-size: 13px;
    font-weight: 500;
    color: #1d2327;
    text-align: right;
}

.cnbm-status-value small {
    font-size: 11px;
    color: #777;
    display: block;
    font-weight: 400;
}

.cnbm-status-active {
    color: #00a32a !important;
}

.cnbm-status-inactive {
    color: #d63638 !important;
}

/* Upgrade Card */
.cnbm-upgrade-card {
    background: linear-gradient(135deg, #4e65d6 0%, #6f42c1 100%);
    color: #fff;
    border: none;
}

.cnbm-upgrade-card h3 {
    color: #fff;
}

.cnbm-feature-list {
    list-style: none;
    margin: 15px 0;
    padding: 0;
}

.cnbm-feature-list li {
    padding: 6px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

/* Help Links */
.cnbm-help-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cnbm-help-links li {
    margin: 0;
}

.cnbm-help-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    text-decoration: none;
    color: #2c3338;
    border-radius: 4px;
    transition: background 0.2s;
}

.cnbm-help-links a:hover {
    background: #f0f0f1;
    color: #2271b1;
}

.cnbm-help-links .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

/* Upgrade Prompt in Stats */
.cnbm-upgrade-prompt {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    text-align: left;
    gap: 10px;
    background-color: #f9f9f9;
    padding: 15px;
}

.cnbm-upgrade-prompt p {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #50575e;
}

.cnbm-upgrade-prompt .button {
    margin-top: 5px;
}

/* Subscribe Form Documentation */
.cnbm-code-box {
    position: relative;
    background: #f6f7f7;
    padding: 12px 50px 12px 12px;
    border-radius: 4px;
    border: 1px solid #dcdcde;
    margin: 10px 0;
}

.cnbm-code-box code {
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    color: #d63638;
    background: transparent;
    padding: 0;
}

.cnbm-copy-btn {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cnbm-copy-btn:hover {
    background: #135e96;
}

.cnbm-copy-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.cnbm-copy-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #fff;
}

.cnbm-copy-btn.cnbm-copied {
    background: #00a32a;
}

.cnbm-copy-btn.cnbm-copied::after {
    content: '✓';
    position: absolute;
    font-size: 14px;
}

.cnbm-form-params summary:hover {
    text-decoration: underline;
}

.cnbm-form-params[open] summary .dashicons {
    transform: rotate(180deg);
}

.cnbm-form-params summary .dashicons {
    transition: transform 0.2s;
    display: inline-block;
}

/* Utility Classes */
.cnbm-mt-20 {
    margin-top: 20px;
}

.cnbm-mt-15 {
    margin-top: 15px;
}

.cnbm-mt-10 {
    margin-top: 10px;
}

.cnbm-mt-0 {
    margin-top: 0;
}

.cnbm-mb-15 {
    margin-bottom: 15px;
}

.cnbm-mb-10 {
    margin-bottom: 10px;
}

.cnbm-ml-10 {
    margin-left: 10px;
}

.cnbm-ml-5 {
    margin-left: 5px;
}

.cnbm-mr-5 {
    margin-right: 5px;
}

.cnbm-w-100 {
    width: 100%;
}

.cnbm-text-center {
    text-align: center;
}

.cnbm-text-right {
    text-align: right;
}

.cnbm-font-bold {
    font-weight: bold;
}

.cnbm-font-500 {
    font-weight: 500;
}

.cnbm-cursor-pointer {
    cursor: pointer;
}

.cnbm-d-block {
    display: block;
}

.cnbm-d-inline-block {
    display: inline-block;
}

.cnbm-d-flex {
    display: flex;
}

.cnbm-justify-center {
    justify-content: center;
}

.cnbm-align-middle {
    vertical-align: middle;
}

.cnbm-color-white {
    color: #fff;
}

.cnbm-color-primary {
    color: #2271b1;
}

.cnbm-bg-white {
    background: #fff;
}

.cnbm-text-capitalize {
    text-transform: capitalize;
}

/* Specific component styles */
.cnbm-stat-icon-blue {
    background: #e7f5ff;
}

.cnbm-stat-icon-green {
    background: #e8f5e9;
}

.cnbm-stat-icon-orange {
    background: #fff3e0;
}

.cnbm-stat-icon-purple {
    background: #f3e5f5;
}

.cnbm-stat-icon-cyan {
    background: #e1f5fe;
}

.cnbm-stat-icon-pink {
    background: #fce4ec;
}

.cnbm-stat-icon-gray {
    background: #eee;
}

.cnbm-icon-blue {
    color: #2271b1;
}

.cnbm-icon-green {
    color: #46a049;
}

.cnbm-icon-orange {
    color: #f57c00;
}

.cnbm-icon-purple {
    color: #7b1fa2;
}

.cnbm-icon-cyan {
    color: #0288d1;
}

.cnbm-icon-pink {
    color: #c2185b;
}

.cnbm-icon-gray {
    color: #777;
}

.cnbm-schedule-notice {
    margin-top: 20px;
    padding: 15px;
    border-left: 4px solid #2271b1;
}

.cnbm-schedule-notice-warning {
    margin: 0;
    padding: 10px;
    background: #fff3cd;
    border-radius: 4px;
}

.cnbm-smtp-notice {
    margin-top: 20px;
}

.cnbm-code-example {
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: #fff;
    padding: 10px;
    border-radius: 3px;
    font-size: 11px;
}

.cnbm-params-summary {
    cursor: pointer;
    font-weight: 500;
    color: #2271b1;
    font-size: 13px;
    padding: 8px 0;
}

.cnbm-params-content {
    margin-top: 10px;
    padding: 10px;
    background: #f6f7f7;
    border-radius: 4px;
    font-size: 12px;
}

.cnbm-params-list {}

.cnbm-mt-15 {
    margin-top: 15px;
}

.cnbm-mt-10 {
    margin-top: 10px;
}

.cnbm-mt-0 {
    margin-top: 0;
}

.cnbm-mb-15 {
    margin-bottom: 15px;
}

.cnbm-mb-10 {
    margin-bottom: 10px;
}

.cnbm-ml-10 {
    margin-left: 10px;
}

.cnbm-ml-5 {
    margin-left: 5px;
}

.cnbm-mr-5 {
    margin-right: 5px;
}

.cnbm-w-100 {
    width: 100%;
}

.cnbm-text-center {
    text-align: center;
}

.cnbm-text-right {
    text-align: right;
}

.cnbm-font-bold {
    font-weight: bold;
}

.cnbm-font-500 {
    font-weight: 500;
}

.cnbm-cursor-pointer {
    cursor: pointer;
}

.cnbm-d-block {
    display: block;
}

.cnbm-d-inline-block {
    display: inline-block;
}

.cnbm-d-flex {
    display: flex;
}

.cnbm-justify-center {
    justify-content: center;
}

.cnbm-align-middle {
    vertical-align: middle;
}

.cnbm-color-white {
    color: #fff;
}

.cnbm-color-primary {
    color: #2271b1;
}

.cnbm-bg-white {
    background: #fff;
}

.cnbm-text-capitalize {
    text-transform: capitalize;
}

/* Specific component styles */
.cnbm-stat-icon-blue {
    background: #e7f5ff;
}

.cnbm-stat-icon-green {
    background: #e8f5e9;
}

.cnbm-stat-icon-orange {
    background: #fff3e0;
}

.cnbm-stat-icon-purple {
    background: #f3e5f5;
}

.cnbm-stat-icon-cyan {
    background: #e1f5fe;
}

.cnbm-stat-icon-pink {
    background: #fce4ec;
}

.cnbm-stat-icon-gray {
    background: #eee;
}

.cnbm-icon-blue {
    color: #2271b1;
}

.cnbm-icon-green {
    color: #46a049;
}

.cnbm-icon-orange {
    color: #f57c00;
}

.cnbm-icon-purple {
    color: #7b1fa2;
}

.cnbm-icon-cyan {
    color: #0288d1;
}

.cnbm-icon-pink {
    color: #c2185b;
}

.cnbm-icon-gray {
    color: #777;
}

.cnbm-schedule-notice {
    margin-top: 20px;
    padding: 15px;
    border-left: 4px solid #2271b1;
}

.cnbm-schedule-notice-warning {
    margin: 0;
    padding: 10px;
    background: #fff3cd;
    border-radius: 4px;
}

.cnbm-smtp-notice {
    margin-top: 20px;
}

.cnbm-code-example {
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: #fff;
    padding: 10px;
    border-radius: 3px;
    font-size: 11px;
}

.cnbm-params-summary {
    cursor: pointer;
    font-weight: 500;
    color: #2271b1;
    font-size: 13px;
    padding: 8px 0;
}

.cnbm-params-content {
    margin-top: 10px;
    padding: 10px;
    background: #f6f7f7;
    border-radius: 4px;
    font-size: 12px;
}

.cnbm-params-list {
    margin: 0;
    padding-left: 20px;
    line-height: 1.8;
}

.cnbm-params-example-label {
    margin: 12px 0 8px 0;
    font-weight: 500;
    color: #1d2327;
}

.cnbm-upgrade-footer {
    margin-top: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.cnbm-upgrade-link {
    color: #fff;
    text-decoration: underline;
}

.cnbm-upgrade-button {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.cnbm-docs-desc {
    font-size: 13px;
    color: #646970;
    margin-bottom: 15px;
}

.cnbm-icon-middle {
    font-size: 16px;
    vertical-align: middle;
}

/* Additional styles for proper layout */
.cnbm-recent-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2271b1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.cnbm-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.cnbm-card-header h2 {
    margin: 0;
    font-size: 16px;
    color: #1d2327;
}

.cnbm-dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cnbm-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.cnbm-status-confirmed {
    background: #edfaef;
    color: #00a32a;
}

.cnbm-status-pending {
    background: #fcf9e8;
    color: #dba617;
}

.cnbm-status-unsubscribed {
    background: #f0f0f1;
    color: #646970;
}

.cnbm-test-email-form {
    margin-top: 15px;
}