[v-cloak] {
    display: none;
}

/* Main Container */
.afi-container {
    /* max-width: 1000px; */
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Card Design */
.afi-card {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    padding: 30px;
    margin-bottom: 20px;
}

.afi-card-header {
    border-bottom: 1px solid #f0f0f1;
    margin: -30px -30px 20px -30px;
    padding: 20px 30px;
    background: #fcfcfc;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
}

.afi-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.afi-step-badge {
    background: #2271b1;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

/* Checkbox Styles for Settings Page */
.afi-checkbox-container {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
}

.afi-checkbox {
    position: relative;
    display: flex;
    flex-basis: 280px;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    margin: 10px;
    padding: 15px;
    box-sizing: border-box;
    border-radius: 5px;
    background-color: #fefefa;
    box-shadow: 0 5px 18px 0 rgba(0, 4, 32, 0.08);
    transition: background-color 0.3s ease;
    border: 1px solid #e2e4e7;
}

/* Active platform styling - when checkbox is checked */
.afi-checkbox:has(input[type="checkbox"]:checked) {
    background-color: #edfaef;
    border-color: #4bce61;
}

/* Fallback for browsers that don't support :has() */
.afi-checkbox.active {
    background-color: #edfaef;
    border-color: #4bce61;
}

.afi-elements-info {
    display: flex;
    align-items: center;
}

p.afi-el-title {
    font-size: 15px;
    font-weight: 600;
    color: #3a3c40;
    margin: 0.5em;
}

.afi-el-title {
    position: relative;
}

.adfoin-toggle-form {
    width: 28px;
    height: 16px;
    float: left;
    margin-top: 3px;
    margin-right: 4px;
    position: relative;
}

.adfoin-toggle-form input[type=checkbox] {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    opacity: 0;
    z-index: 1
}

.adfoin-toggle-form input[type=checkbox]:checked+.afi-slider {
    background-color: #4bce61;
}

.adfoin-toggle-form input[type=checkbox]:checked+.afi-slider::before {
    -ms-transform: translateX(100%);
    transform: translateX(100%)
}

.adfoin-toggle-form .afi-slider {
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: .4s;
    background-color: #cdd0d2;
    border-radius: 16px;
}

.adfoin-toggle-form .afi-slider::before {
    content: '';
    width: 12px;
    height: 12px;
    position: absolute;
    left: 2px;
    bottom: 2px;
    transition: .2s;
    background-color: #fff;
    border-radius: 50%;
}

/* Form Elements */
.afi-form-group {
    margin-bottom: 20px;
}

.afi-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #3c434a;
    font-size: 14px;
}

.afi-input,
.afi-select,
.afi-textarea {
    width: 100%;
    max-width: 100%;
    padding: 0 12px;
    height: 40px;
    line-height: 40px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background-color: #fff;
    color: #2c3338;
    box-sizing: border-box;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.afi-textarea {
    height: auto;
    padding: 12px;
    line-height: 1.5;
}

.afi-input:focus,
.afi-select:focus,
.afi-textarea:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 0;
}

.afi-helper-text {
    font-size: 12px;
    color: #646970;
    margin-top: 5px;
}

/* Grid System */
.afi-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.afi-col {
    padding: 0 10px;
    box-sizing: border-box;
}

.afi-col-12 {
    width: 100%;
}

.afi-col-6 {
    width: 50%;
}

.afi-col-4 {
    width: 33.333%;
}

/* Buttons */
.afi-btn-primary {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    text-decoration: none;
    text-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1.4;
    min-height: 36px;
    margin: 0;
    padding: 0 20px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    -webkit-appearance: none;
    border-radius: 4px;
    white-space: nowrap;
    box-sizing: border-box;
    transition: all 0.2s ease;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.afi-btn-primary:hover {
    background: #135e96;
    border-color: #135e96;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.afi-btn-primary .dashicons {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 18px;
    line-height: 1;
}
}

.afi-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}


.afi-btn-secondary {
    color: #2271b1;
    border-color: #2271b1;
    background: #f6f7f7;
    vertical-align: top;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    min-height: 36px;
    margin: 0 0 0 10px;
    padding: 0 20px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    -webkit-appearance: none;
    border-radius: 4px;
    white-space: nowrap;
    box-sizing: border-box;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}


.afi-btn-secondary:hover {
    background: #f0f0f1;
    border-color: #0a4b78;
    color: #0a4b78;
}

.afi-btn-secondary .dashicons {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 18px;
    line-height: 1;
}

/* Refresh Button */
.afi-refresh-button {
    cursor: pointer;
    transition: color 0.2s ease;
}

.afi-refresh-button:hover {
    color: #2271b1;
}
}


/* Loading Spinner */
.afi-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(34, 113, 177, 0.3);
    border-radius: 50%;
    border-top-color: #2271b1;
    animation: afi-spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
    opacity: 0;
    transition: opacity 0.3s;
}

.afi-spinner.is-active {
    opacity: 1;
}

@keyframes afi-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mapping Table (Dynamic Fields) */
.afi-mapping-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.afi-mapping-table th {
    text-align: left;
    padding: 10px;
    border-bottom: 2px solid #f0f0f1;
    color: #646970;
    font-weight: 600;
}

.afi-mapping-table td {
    padding: 10px;
    border-bottom: 1px solid #f0f0f1;
    vertical-align: top;
}

.afi-mapping-table tr:last-child td {
    border-bottom: none;
}

/* Conditional Logic */
.afi-cl-group {
    background: #f6f7f7;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    border: 1px solid #dcdcde;
}

.afi-cl-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.afi-cl-row:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media only screen and (max-width: 768px) {

    .afi-col-6,
    .afi-col-4 {
        width: 100%;
    }

    .afi-cl-row {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Header Styles */
.afi-header {
    background: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-left: -20px;
    /* Counteract WordPress wrap margin */
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e4e7;
}

.afi-log-header {
    background: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    /* Counteract WordPress wrap margin */
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e4e7;
}

.afi-logo {
    margin-right: auto;
}

.afi-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1d2327;
}

.afi-logo img {
    height: 18px;
    width: auto;
    margin-right: 5px;
}

.afi-logo-text {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    line-height: 1;
    color: #1d2327;
}

.afi-help {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #50575e !important;
    font-size: 20px !important;
    padding: 5px !important;
    margin-left: 10px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    transition: background 0.2s ease !important;
}

.afi-help:hover {
    background: #f0f0f1 !important;
    color: #2271b1 !important;
}

.afi-help .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Page Title Override */
#afi-page-title {
    padding: 0 0 20px 0;
    font-size: 28px;
    font-weight: 500;
    color: #1d2327;
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    letter-spacing: -0.5px;
}

.afi-add-new {
    background: #2271b1;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    margin-left: 15px;
    vertical-align: middle;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.afi-add-new:hover {
    background: #135e96;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.afi-add-new:active {
    transform: translateY(0);
    box-shadow: none;
}

.afi-add-new .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

/* Filter Controls */
.afi-filter-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Fix Admin Footer */
#wpfooter {
    clear: both;
    position: relative;
}

/* Save Button Styling */
.afi-save-button {
    background-color: #2271b1 !important;
    color: #fff !important;
    border: none !important;
    padding: 0 20px !important;
    height: 36px !important;
    line-height: 36px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.afi-save-button:hover {
    background-color: #135e96 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15) !important;
}

.afi-save-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.afi-filter-links {
    display: inline-flex;
    background: #f0f0f1;
    border-radius: 4px;
    padding: 3px;
}

.afi-filter-btn {
    background: transparent;
    border: none;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #646970;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
    line-height: 1.4;
}

.afi-filter-btn:hover {
    color: #1d2327;
    background: rgba(255, 255, 255, 0.5);
}

.afi-filter-btn.active {
    background: #fff;
    color: #2271b1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.afi-search-wrapper {
    position: relative;
}

.afi-search-wrapper input[type="search"] {
    padding-left: 30px;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20fill%3D%22%238c8f94%22%20d%3D%22M12.9%2014.32a8%208%200%201%201%201.41-1.41l5.35%205.33-1.42%201.42-5.33-5.34zM8%2014A6%206%200%201%200%208%202a6%206%200%200%200%200%2012z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: 8px center;
    background-size: 16px;
}

/* Adjust Checkbox Grid for better density */
.afi-checkbox-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.afi-checkbox {
    margin: 0;
    /* Reset margin as we use grid gap */
    flex-basis: auto;
    /* Reset flex-basis */
    width: auto;
}

/* Help Page Styles */
.afi-help-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.afi-help-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f1;
    font-size: 14px;
    color: #3c434a;
}

.afi-help-list li:last-child {
    border-bottom: none;
}

.afi-help-list li a {
    text-decoration: none;
    color: #2271b1;
}

.afi-help-list li a:hover {
    color: #135e96;
    text-decoration: underline;
}

/* Help Page Grid Layout */
.afi-help-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.afi-help-col {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.afi-help-col .afi-card {
    height: 100%;
    margin-bottom: 0;
    /* Override default card margin */
    display: flex;
    flex-direction: column;
}

.afi-help-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 0;
}

.afi-help-icon {
    font-size: 48px;
    color: #ed5255;
    margin-bottom: 20px;
    width: 48px;
    height: 48px;
}

.afi-help-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
}

.afi-help-desc {
    color: #646970;
    margin: 0 0 25px 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Unified Help Grid */
.afi-help-unified-grid {
    display: flex;
    flex-wrap: wrap;
}

.afi-help-unified-item {
    flex: 1;
    min-width: 200px;
    padding: 40px 20px;
    text-align: center;
    border-right: 1px solid #e2e4e7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.afi-help-unified-item:last-child {
    border-right: none;
}

/* Responsive adjustments */
@media only screen and (max-width: 768px) {
    .afi-help-unified-item {
        border-right: none;
        border-bottom: 1px solid #e2e4e7;
    }

    .afi-help-unified-item:last-child {
        border-bottom: none;
    }
}

/* Log Table Styles */
/* .wp-list-table.logs {
    border: 1px solid #e2e4e7;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
} */

/* .wp-list-table.logs thead th,
.wp-list-table.logs tfoot th {
    background: #fcfcfc;
    color: #1d2327;
    font-weight: 600;
    border-bottom: 1px solid #e2e4e7;
    border-top: none;
    padding: 15px 20px;
} */

/* .wp-list-table.logs tbody td {
    padding: 15px 20px;
    vertical-align: middle;
    color: #3c434a;
} */

/* Log Details Page Styles */
.afi-log-details-table {
    width: 100%;
    border-collapse: collapse;
}

.afi-log-details-table th {
    width: 200px;
    padding: 20px;
    text-align: left;
    vertical-align: top;
    font-weight: 600;
    color: #1d2327;
    border-bottom: 1px solid #f0f0f1;
}

.afi-log-details-table td {
    padding: 20px;
    vertical-align: top;
    color: #3c434a;
    border-bottom: 1px solid #f0f0f1;
}

.afi-log-details-table tr:last-child th,
.afi-log-details-table tr:last-child td {
    border-bottom: none;
}


/* .wp-list-table.logs tbody tr:nth-child(odd) {
    background-color: #fff;
} */

/* .wp-list-table.logs tbody tr:nth-child(even) {
    background-color: #fcfcfc;
} */

/* .wp-list-table.logs .column-integration_id span {
    font-weight: 500;
    color: #2271b1;
} */

/* Response Codes */
.afi-log-response-code {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    background: #f0f0f1;
    /* Default */
    color: #646970;
}

.afi-log-response-code.code-200 {
    background: #edfaef;
    color: #00a32a;
    border: 1px solid #c3e6cb;
}

.afi-log-response-code.code-400,
.afi-log-response-code.code-500 {
    background: #fbeaea;
    color: #d63638;
    border: 1px solid #f5c6cb;
}

.afi-log-date {
    font-size: 12px;
    color: #8c8f94;
    margin-top: 5px;
}

/* Action Icons */
.wp-list-table.logs .column-actions {
    text-align: right;
}

.afi-header-actions {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.afi-code-block {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 15px;
    font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
    font-size: 13px;
    color: #2c3338;
    margin: 0;
}

/* Enhanced Log Details Table */
.afi-log-details-table th {
    width: 200px;
    padding: 20px;
    text-align: left;
    vertical-align: top;
    font-weight: 600;
    color: #1d2327;
    border-bottom: 1px solid #f0f0f1;
    background-color: #fcfcfc;
}

.afi-log-details-table tr:hover td {
    background-color: #fafafa;
}

.afi-log-details-table td {
    padding: 20px;
    vertical-align: top;
    color: #3c434a;
    border-bottom: 1px solid #f0f0f1;
}

/* Status Badge in Details */
.afi-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
}

.afi-status-badge.success {
    background: #edfaef;
    color: #00a32a;
    border: 1px solid #c3e6cb;
}

.afi-status-badge.error {
    background: #fbeaea;
    color: #d63638;
    border: 1px solid #f5c6cb;
}



.wp-list-table.logs .column-actions a {
    text-decoration: none;
    margin-left: 8px;
    display: inline-block;
}

.wp-list-table.logs .column-actions .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #8c8f94;
    transition: color 0.2s ease;
}

.wp-list-table.logs .column-actions .dashicons:hover {
    color: #2271b1;
}

.wp-list-table.logs .column-actions .afi-icon-copy-full-log:hover {
    color: #2271b1;
    cursor: pointer;
}

.afi-full-log-icon-container {
    display: inline-block;
    margin-left: 8px;
}

/* Fix CodeMirror Overflow */
.CodeMirror {
    height: auto !important;
    min-height: 100px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
}

.CodeMirror-scroll {
    max-height: 500px;
    overflow-x: auto !important;
    overflow-y: auto !important;
}

.afi-log-details-table td .CodeMirror {
    max-width: 800px;
    /* Prevent it from pushing the table too wide */
}

/* Log Navigation */
.afi-log-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e4e7;
}

.afi-log-navigation .afi-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    height: auto;
    min-height: 36px;
    line-height: 1.2;
    font-size: 14px;
    color: #50575e;
    background: #fff;
    border-color: #dcdcde;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.afi-log-navigation .afi-btn-secondary:hover {
    background: #fcfcfc;
    border-color: #2271b1;
    color: #2271b1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.afi-log-navigation .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Copy Full Log Button Polish */
.button-copy-full-log {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    height: auto;
    min-height: 32px;
    line-height: 1.2;
    font-size: 13px;
    color: #50575e;
    background: #fff;
    border-color: #dcdcde;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.button-copy-full-log:hover {
    background: #fcfcfc;
    border-color: #2271b1;
    color: #2271b1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button-copy-full-log .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Instructions Card Modern Design */
.afi-instructions-card {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.afi-instructions-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.afi-instructions-header {
    background: linear-gradient(to right, #fcfcfc, #f9f9f9);
    border-bottom: 1px solid #f0f0f1;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 10px;
}

.afi-instructions-header .dashicons {
    color: #2271b1;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.afi-instructions-body {
    padding: 20px;
    font-size: 14px;
}

.afi-instructions-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: decimal;
}

.afi-instructions-list li {
    margin-bottom: 15px;
    color: #50575e;
    line-height: 1.6;
}

.afi-instructions-list li:last-child {
    margin-bottom: 0;
}

.afi-instructions-list li strong {
    color: #1d2327;
    font-weight: 600;
}

.afi-code-block {
    background: #f0f6fc;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 10px 12px;
    font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
    color: #1f2328;
    display: block;
    margin: 8px 0;
    word-break: break-all;
    font-size: 12px;
    position: relative;
}

.afi-code-block:hover {
    border-color: #2271b1;
}

/* Accounts Card Design */
.afi-accounts-card {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 20px;
}

.afi-accounts-header {
    background: #fff;
    border-bottom: 1px solid #f0f0f1;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.afi-accounts-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.afi-accounts-title .dashicons {
    color: #2271b1;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.afi-accounts-body {
    padding: 0;
}

/* Override WP List Table Styles for Card */
.afi-accounts-card .wp-list-table {
    border: none;
    box-shadow: none;
    margin: 0;
}

.afi-accounts-card .wp-list-table thead th {
    border-bottom: 1px solid #e2e4e7;
    background: #fcfcfc;
    padding: 15px 20px;
    font-weight: 600;
    color: #646970;
}

.afi-accounts-card .wp-list-table tbody td {
    padding: 15px 20px;
    vertical-align: middle;
    color: #3c434a;
    border-bottom: 1px solid #f0f0f1;
}

.afi-accounts-card .wp-list-table tr:last-child td {
    border-bottom: none;
}

.afi-accounts-card .button-primary {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    font-weight: 600;
    padding: 4px 12px;
    height: 32px;
    line-height: 22px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.afi-accounts-card .button-primary:hover {
    background: #135e96;
    border-color: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Modal Styles */
.afi-modal {
    display: block;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.afi-modal-content {
    background-color: #fefefe;
    padding: 30px;
    border: 1px solid #888;
    width: 500px;
    max-width: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: afi-modal-fade-in 0.3s ease;
}

@keyframes afi-modal-fade-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.afi-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    line-height: 1;
    transition: color 0.2s;
}

.afi-close:hover,
.afi-close:focus {
    color: #1d2327;
    text-decoration: none;
    cursor: pointer;
}

.afi-modal h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    color: #1d2327;
}

.afi-modal .form-table th {
    width: 120px;
    padding: 15px 10px 15px 0;
}

.afi-modal .form-table td {
    padding: 10px 0;
}

.afi-modal .button-primary {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    height: 40px;
    font-size: 15px;
}