/**
 * Activity Log Pro Admin Styles
 */

/* Plugin Logo and Header Section */
.alp-logo-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0 -10px 0;
    gap: 20px;
}

.alp-plugin-logo {
    display: block;
    text-align: left;
    flex: 0 0 auto;
    text-decoration: none;
}

.alp-plugin-logo img {
    max-width: 250px;
    height: auto;
    max-height: 80px;
    width: auto;
}

/* Title Header Section with Quick Tips */
.alp-title-header-section {
    margin-bottom: 20px;
}

.alp-title-header-section h1 {
    margin: 0 0 10px 0;
}

.alp-title-quick-tips {
    margin-left: 0;
}

.alp-title-quick-tips .alp-quick-tips-compact {
    max-width: 600px;
    margin-left: 0;
}

/* Statistics Box */
.alp-stats-box {
    display: flex;
    flex-direction: column;
    margin-left: auto;
    padding: 7px 12px;
    background: #f0f0f1;
    border-radius: 4px;
    border: 1px solid #c3c4c7;
    gap: 6px;
}

.alp-stats-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.alp-stats-row-divider {
    width: 100%;
    height: 1px;
    background: #c3c4c7;
}

.alp-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.alp-stat-divider {
    width: 1px;
    height: 20px;
    background: #c3c4c7;
    margin: 0 12px;
}

.alp-stat-label {
    color: #50575e;
    font-weight: normal;
}

.alp-stat-value {
    font-weight: 600;
    color: #2271b1;
}



/* Quick Tips Compact Styles */
.alp-quick-tips-compact {
    display: flex;
    align-items: center;
    margin-left: 0;
    padding: 6px 12px;
    background: #f0f6fc;
    border: 1px solid #c3c4c7;
    border-left: 3px solid #0073aa;
    border-radius: 4px;
    height: 32px;
    gap: 8px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.alp-quick-tips-compact:hover {
    border-left-color: #005a87;
    background: #e7f3ff;
}

.alp-tip-header-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.alp-tip-icon {
    font-size: 14px;
}

.alp-tip-label {
    font-weight: 600;
    color: #1d2327;
    font-size: 12px;
    white-space: nowrap;
}

.alp-tip-counter {
    font-size: 11px;
    color: #646970;
    font-weight: 500;
}

.alp-current-tip {
    color: #0073aa;
    font-weight: 600;
}

.alp-total-tips {
    font-weight: 600;
}

.alp-tip-content-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.alp-tip-nav {
    background: none;
    border: 1px solid #c3c4c7;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2271b1;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.alp-tip-nav:hover:not(:disabled) {
    border-color: #2271b1;
    background: #f6f7f7;
    color: #135e96;
}

.alp-tip-nav:focus:not(:disabled) {
    outline: 1px solid #0073aa;
    outline-offset: 1px;
}

.alp-tip-nav:disabled {
    color: #c3c4c7;
    border-color: #dcdcde;
    cursor: not-allowed;
    background: #f6f7f7;
}

.alp-tip-nav .dashicons {
    width: 12px;
    height: 12px;
    font-size: 12px;
}

.alp-quick-tips-close {
    background: none;
    border: 1px solid #c3c4c7;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #646970;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.alp-quick-tips-close:hover {
    color: #1d2327;
    background: #f6f7f7;
    border-color: #8c8f94;
}

.alp-quick-tips-close:focus {
    outline: 1px solid #0073aa;
    outline-offset: 1px;
}

.alp-quick-tips-close .dashicons {
    width: 12px;
    height: 12px;
    font-size: 12px;
}

.alp-tip-text {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
    color: #1d2327;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alp-tip-text a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.alp-tip-text a:hover {
    color: #005a87;
    text-decoration: underline;
}

.alp-tip-text code {
    background: #f1f1f1;
    padding: 1px 4px;
    border-radius: 2px;
    font-family: Consolas, Monaco, monospace;
    font-size: 11px;
    color: #d63384;
    border: 1px solid #e0e0e0;
}

/* Responsive styles for Quick Tips Compact */
@media screen and (max-width: 1200px) {
    .alp-quick-tips-compact {
        margin-left: 10px;
        gap: 6px;
    }
    
    .alp-tip-text {
        max-width: 250px;
    }
}

@media screen and (max-width: 782px) {
    .alp-logo-header-section {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    /* Responsive styles for title header section */
    .alp-title-header-section h1 {
        margin-bottom: 15px;
    }
    
    .alp-title-quick-tips {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .alp-title-quick-tips .alp-quick-tips-compact {
        max-width: 100%;
    }

    .alp-quick-tips-compact {
        margin-left: 0;
        margin-top: 0;
        width: 100%;
        height: auto;
        padding: 8px 10px;
        gap: 6px;
    }
    
    .alp-tip-header-inline {
        gap: 4px;
    }
    
    .alp-tip-text {
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
        max-width: none;
        font-size: 11px;
    }
    
    .alp-tip-nav,
    .alp-quick-tips-close {
        width: 18px;
        height: 18px;
    }
    
    .alp-tip-nav .dashicons,
    .alp-quick-tips-close .dashicons {
        width: 10px;
        height: 10px;
        font-size: 10px;
    }
}

/* General Styles */
.alp-wrap {
    margin: 20px 0;
    margin-right: 20px; /* Add right margin */
    padding-right: 20px; /* Additional right padding */
}

/* Ensure Activity Log Pro pages use full width */
body.activity-log-pro_page_activity-log-pro .wrap,
body.activity-log-pro_page_activity-log-pro-settings .wrap,
body.activity-log-pro_page_activity-log-pro-export .wrap,
body.activity-log-pro_page_activity-log-pro-integrations .wrap,
body.activity-log-pro_page_activity-log-pro-stats .wrap,
body.toplevel_page_activity-log-pro .wrap,
body.dashboard_page_activity-log-pro .wrap,
body.dashboard_page_activity-log-pro-settings .wrap,
body.dashboard_page_activity-log-pro-export .wrap,
body.dashboard_page_activity-log-pro-integrations .wrap,
body.dashboard_page_activity-log-pro-stats .wrap,
body.tools_page_activity-log-pro .wrap,
body.tools_page_activity-log-pro-settings .wrap,
body.tools_page_activity-log-pro-export .wrap,
body.tools_page_activity-log-pro-integrations .wrap,
body.tools_page_activity-log-pro-stats .wrap {
    max-width: none !important;
    width: 100% !important;
    margin-right: 0 !important;
    padding-right: 20px;
    box-sizing: border-box;
}

/* Exception for upgrade page - restore centered layout */
body.activity-log-pro_page_activity-log-pro-upgrade .wrap,
body.activity-log-pro_page_activity-log-pro-upgrade .alp-wrap,
body.dashboard_page_activity-log-pro-upgrade .wrap,
body.dashboard_page_activity-log-pro-upgrade .alp-wrap,
body.tools_page_activity-log-pro-upgrade .wrap,
body.tools_page_activity-log-pro-upgrade .alp-wrap {
    margin: 20px auto !important;
    padding: 0 20px !important;
    max-width: 1200px !important;
}

.alp-container {
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    margin-top: 20px;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* Filters */
.alp-filters {
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
    background: #f9f9f9;
}

.alp-filter-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
    align-items: flex-start;
    gap: 15px;
}

.alp-filter-row:last-child {
    margin-bottom: 0;
}

.alp-filter-item {
    margin: 0;
}

.alp-filter-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.alp-filter-item select,
.alp-filter-item input[type="text"] {
    min-width: 200px;
}

/* Search and Buttons Container */
.alp-search-container {
    display: flex;
    flex: 1;
    gap: 10px;
    align-items: flex-end;
}

/* Search Box */
.alp-search-item {
    flex: 1;
    margin: 0;
}

.alp-search-item input {
    width: 100%;
    height: 30px;
}

/* Buttons */
.alp-buttons-item {
    display: flex;
    gap: 5px;
    margin: 0;
    align-items: flex-end;
}

.alp-buttons-item .button {
    height: 30px;
    line-height: 28px;
    padding: 0 12px;
}

/* Logs Table */
.alp-logs-container {
    padding: 15px;
    position: relative;
    overflow-x: auto;
}

.alp-logs-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
}

.alp-logs-table th {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #e5e5e5;
    font-weight: 600;
}

.alp-logs-table td {
    padding: 12px 10px;
    vertical-align: top;
    border-bottom: 1px solid #f1f1f1;
}

.alp-logs-table tr:last-child td {
    border-bottom: none;
}

/* Add ID column width */
.alp-col-id {
    width: 5%;
}

/* Adjust other column widths */
.alp-col-date {
    width: 12%;
}

.alp-col-user {
    width: 12%;
}

.alp-col-ip {
    width: 10%;
}

.alp-col-event {
    width: 8%;
}

.alp-col-object {
    width: 12%;
}

.alp-col-action {
    width: 8%;
}

/* Description column with details button */
.alp-description-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.alp-description-text {
    flex-grow: 1;
    padding-right: 10px;
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden; /* Hide overflow text */
    text-overflow: ellipsis; /* Show ellipsis for truncated text */
    max-width: calc(100% - 80px); /* Account for Details button width */
}

.alp-details-btn-container {
    flex-shrink: 0;
    text-align: right;
}

.alp-details-btn {
    margin-left: 10px !important;
    background-color: #2271b1 !important;
    color: #fff !important;
    border-color: #2271b1 !important;
    transition: background-color 0.2s ease-in-out !important;
}

.alp-details-btn:hover {
    background-color: #135e96 !important;
    border-color: #135e96 !important;
}

/* Make description column wider to accommodate the button */
.alp-col-description {
    width: 25%;
    max-width: 300px; /* Set maximum width */
}

/* System User Styling */
.alp-system-user {
    color: #666;
    font-style: italic;
    font-weight: 500;
}

/* User Role Styling */
.alp-user-role {
    font-size: 0.85em;
    color: #999;
}

/* Loading Indicator */
.alp-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alp-loading-text {
    margin-left: 10px;
    font-weight: 600;
}

/* Pagination */
/* Pagination styles */
.alp-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alp-pagination-links {
    display: flex;
    gap: 5px;
}

.alp-pagination-links a, 
.alp-pagination-links span {
    padding: 5px 10px;
    border: 1px solid #ddd;
    text-decoration: none;
    border-radius: 3px;
}

.alp-pagination-links a:hover {
    background-color: #f0f0f0;
}

.alp-pagination-links .current-page {
    background-color: #2271b1;
    color: white;
    border-color: #2271b1;
}

.alp-pagination-links .alp-page-disabled {
    color: #aaa;
    cursor: not-allowed;
}

.alp-pagination-info {
    color: #666;
}
/* Settings Page */
.alp-settings-container {
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    margin-top: 0;
    margin-bottom: 0;
}

/* Copy URL Button */
.alp-copy-url-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 5px;
    margin-left: 5px;
    vertical-align: middle;
    color: #0073aa;
    transition: color 0.2s ease;
}

.alp-copy-url-btn:hover {
    color: #00a0d2;
}

.alp-copy-url-btn:focus {
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
    border-radius: 2px;
}

.alp-settings-section {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.alp-settings-section:last-child {
    border-bottom: none;
}

.alp-settings-section h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f1f1;
}

/* Responsive Adjustments */
@media screen and (max-width: 782px) {
    .alp-filter-item {
        width: 100%;
        margin-right: 0;
    }
    
    .alp-filter-item select,
    .alp-filter-item input[type="text"] {
        width: 100%;
        max-width: none;
    }
    
    .alp-buttons-item {
        width: 100%;
        justify-content: flex-end;
    }
    
    .alp-logs-table {
        display: block;
    }
    
    .alp-logs-table thead,
    .alp-logs-table tbody,
    .alp-logs-table th,
    .alp-logs-table td,
    .alp-logs-table tr {
        display: block;
    }
    
    .alp-logs-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .alp-logs-table tr {
        border: 1px solid #e5e5e5;
        margin-bottom: 10px;
    }
    
    .alp-logs-table td {
        border: none;
        border-bottom: 1px solid #f1f1f1;
        position: relative;
        padding-left: 40%;
        min-height: 30px;
    }
    
    /* Update responsive styling to include ID column */
    @media screen and (max-width: 782px) {
        .alp-filter-item {
            width: 100%;
            margin-right: 0;
        }
        
        .alp-filter-item select,
        .alp-filter-item input[type="text"] {
            width: 100%;
            max-width: none;
        }
        
        .alp-buttons-item {
            width: 100%;
            justify-content: flex-end;
        }
        
        .alp-logs-table {
            display: block;
        }
        
        .alp-logs-table thead,
        .alp-logs-table tbody,
        .alp-logs-table th,
        .alp-logs-table td,
        .alp-logs-table tr {
            display: block;
        }
        
        .alp-logs-table thead tr {
            position: absolute;
            top: -9999px;
            left: -9999px;
        }
        
        .alp-logs-table tr {
            border: 1px solid #e5e5e5;
            margin-bottom: 10px;
        }
        
        .alp-logs-table td {
            border: none;
            border-bottom: 1px solid #f1f1f1;
            position: relative;
            padding-left: 40%;
            min-height: 30px;
        }
        
        .alp-logs-table td:before {
            position: absolute;
            top: 12px;
            left: 10px;
            width: 35%;
            padding-right: 10px;
            white-space: nowrap;
            font-weight: 600;
        }
        
        .alp-logs-table td:nth-of-type(1):before { content: "ID"; }
        .alp-logs-table td:nth-of-type(2):before { content: "Date"; }
        .alp-logs-table td:nth-of-type(3):before { content: "User"; }
        .alp-logs-table td:nth-of-type(4):before { content: "IP Address"; }
        .alp-logs-table td:nth-of-type(5):before { content: "Event"; }
        .alp-logs-table td:nth-of-type(6):before { content: "Object"; }
        .alp-logs-table td:nth-of-type(7):before { content: "Action"; }
        .alp-logs-table td:nth-of-type(8):before { content: "Description"; }

        .alp-logs-table tr.alp-day-divider-row .alp-day-divider-cell {
            padding-left: 12px;
            padding-right: 12px;
            min-height: auto;
            text-align: center;
        }

        .alp-logs-table tr.alp-day-divider-row .alp-day-divider-cell:before {
            display: none !important;
            content: none !important;
        }

        .alp-day-divider-wrap {
            padding: 0;
        }

        .alp-day-divider-label {
            white-space: normal;
            word-break: break-word;
        }
    }
}

/* Settings Form */
.alp-submit-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.alp-settings-saved {
    margin-left: 15px;
    color: #46b450;
    font-weight: 600;
    display: inline-block;
    vertical-align: middle;
    line-height: 30px;
}

/* Clear Logs Button */
.alp-clear-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.alp-logs-cleared {
    margin-left: 15px;
    color: #46b450;
    font-weight: 600;
    display: inline-block;
    vertical-align: middle;
    line-height: 30px;
}

/* Make the Clear All Logs button blue */
#alp-clear-logs {
    background-color: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

#alp-clear-logs:hover {
    background-color: #135e96;
    border-color: #135e96;
}

/* Sortable columns */
.alp-logs-table th.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 20px;
}

.alp-logs-table th.sortable:after {
    content: "\f0dc";
    font-family: dashicons;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.4;
    font-size: 14px;
}

.alp-logs-table th.sorted-asc:after {
    content: "\f142";
    opacity: 1;
}

.alp-logs-table th.sorted-desc:after {
    content: "\f140";
    opacity: 1;
}

.alp-logs-table th.sortable:hover:after {
    opacity: 0.8;
}

/* Modern Dialog Styling */
.alp-modern-dialog {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 0;
}

.alp-modern-dialog .ui-dialog-titlebar {
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 0;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 500;
}

.alp-modern-dialog .ui-dialog-titlebar-close {
    background: transparent;
    border: none;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.alp-modern-dialog .ui-dialog-titlebar-close:hover {
    opacity: 1;
}

.alp-details-popup-content {
    padding: 0;
    /* Increased max-height to reduce scrolling */
    max-height: 800px;
    overflow-y: auto;
}

.alp-details-section {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.alp-details-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.alp-details-heading {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    color: #2271b1;
}

.alp-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.alp-details-item {
    margin-bottom: 5px;
}

.alp-details-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.alp-details-value {
    word-break: break-word;
}

.alp-context-container {
    background: #f9f9f9;
    border-radius: 4px;
    padding: 15px;
}

.alp-context-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.alp-context-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.alp-context-key {
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.alp-context-value {
    word-break: break-word;
}

.alp-context-value pre {
    margin: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: auto;
    max-height: 200px;
    font-size: 13px;
}

.alp-no-context {
    color: #777;
    font-style: italic;
    margin: 0;
}

.alp-dialog-button {
    background: #2271b1 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

.alp-dialog-button:hover {
    background: #135e96 !important;
}

/* Export page styles */
.alp-export-container {
    margin-top: 20px;
}

.alp-export-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    padding: 20px;
    margin-bottom: 20px;
}

.alp-export-form label {
    margin-right: 15px;
}

.alp-export-form input[type="radio"] {
    margin-right: 5px;
}

.alp-spinner {
    float: none;
    margin-left: 10px;
    vertical-align: middle;
}

#alp-export-button {
    min-width: 120px;
}

/* Live Monitor Checkbox Styling */
.alp-live-monitor {
    display: flex;
    align-items: center;
    margin: 0;
    padding-top: 25px;
}

.alp-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0;
}

.alp-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
}

/* Question mark icon and tooltip */
.alp-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 5px;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
}

.alp-help-icon svg {
    width: 16px;
    height: 16px;
    fill: #787c82;
    vertical-align: middle;
}

.alp-help-icon:hover svg {
    fill: #2271b1;
}

.alp-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    background: #23282d;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
    width: 250px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: none;
}

.alp-tooltip:before {
    display: none;
}

.alp-help-icon.active .alp-tooltip {
    display: block;
}

/* Token Generation Styles */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button with shield icon */
#alp-generate-json-token,
#alp-generate-rss-token {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
}

/* Secure feed URLs */
.alp-feed-url-container code {
    font-size: 12px;
    word-break: break-all;
    border-left: 3px solid #8bc34a;
    padding-left: 8px;
    background-color: #f9f9f9;
}

/* User role styling */
.alp-user-role {
    font-size: 12px;
    color: #999;
    display: block;
    margin-top: 2px;
}

/* Premium Feature Styles */
.alp-setting-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.alp-setting-title-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.alp-setting-title {
    font-weight: 600;
    line-height: 1.3;
}

.alp-premium-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(102, 126, 234, 0.3);
    min-height: 20px;
    white-space: nowrap;
}

.alp-premium-setting-container {
    position: relative;
    border: 2px solid #f0f6fc;
    border-radius: 8px;
    background: linear-gradient(135deg, #fafbff 0%, #f8f9ff 100%);
    padding: 20px;
}

.alp-premium-fieldset {
    margin-bottom: 15px;
    position: relative;
}

.alp-premium-radio-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #555;
    position: relative;
}

.alp-premium-radio-label input[type="radio"] {
    margin-right: 8px;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Premium checkbox label styling */
.alp-premium-checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #646970;
    cursor: not-allowed;
}

.alp-premium-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    opacity: 0.6;
    cursor: not-allowed;
}

.alp-premium-description-text {
    color: #666;
    opacity: 0.8;
    font-style: italic;
}

.alp-premium-upgrade-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    padding: 16px;
    margin-top: 15px;
    color: #fff;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
}

.alp-premium-upgrade-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.alp-premium-upgrade-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.alp-premium-upgrade-text {
    flex-grow: 1;
}

.alp-premium-upgrade-text h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.alp-premium-upgrade-text p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.alp-premium-upgrade-btn-compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.alp-premium-upgrade-btn-compact:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.alp-premium-upgrade-btn-compact:focus {
    color: #fff;
    text-decoration: none;
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.alp-premium-upgrade-btn-compact svg {
    transition: transform 0.3s ease;
}

.alp-premium-upgrade-btn-compact:hover svg {
    transform: translateX(2px);
}

/* Premium Active Banner */
.alp-premium-active-banner {
    background: linear-gradient(135deg, #46b450 0%, #5cbf60 100%);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(70, 180, 80, 0.2);
    border: 1px solid rgba(70, 180, 80, 0.3);
    position: relative;
}

.alp-premium-active-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 30px; /* Space for close button */
}

.alp-premium-badge-large {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 6px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-height: 24px;
    white-space: nowrap;
}

.alp-premium-active-text {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.alp-premium-active-banner .notice-dismiss {
    position: absolute;
    top: 0;
    right: 1px;
    padding: 9px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.alp-premium-active-banner .notice-dismiss:hover {
    color: #fff;
}

.alp-premium-active-banner .notice-dismiss:before {
    background: none;
    color: rgba(255, 255, 255, 0.8);
    content: "\f153";
    display: block;
    font: normal 16px/20px dashicons;
    speak: never;
    height: 20px;
    text-align: center;
    width: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.alp-premium-active-banner .notice-dismiss:hover:before {
    color: #fff;
}

/* Free Banner */
.alp-free-banner {
    background: linear-gradient(135deg, #1e88e5 0%, #1976d2 100%);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.2);
    border: 1px solid rgba(30, 136, 229, 0.3);
    position: relative;
}

/* Welcome Banner */
.alp-welcome-banner {
    background: linear-gradient(135deg, #8e9aaf 0%, #6c757d 100%);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(142, 154, 175, 0.2);
    border: 1px solid rgba(142, 154, 175, 0.3);
    position: relative;
}

.alp-welcome-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 30px; /* Space for close button */
}

.alp-welcome-badge-large {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 6px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-height: 24px;
    white-space: nowrap;
    flex-shrink: 0;
}

.alp-welcome-text {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    flex-grow: 1;
}

.alp-welcome-text a {
    color: #fff;
    text-decoration: underline;
}

.alp-welcome-text a:hover {
    color: #f8f9fa;
    text-decoration: none;
}

.alp-welcome-banner .notice-dismiss {
    position: absolute;
    top: 0;
    right: 1px;
    padding: 9px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.alp-welcome-banner .notice-dismiss:hover {
    color: #fff;
}

.alp-welcome-banner .notice-dismiss:before {
    background: none;
    color: rgba(255, 255, 255, 0.8);
    content: "\f153";
    display: block;
    font: normal 16px/20px dashicons;
    speak: never;
    height: 20px;
    text-align: center;
    width: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.alp-welcome-banner .notice-dismiss:hover:before {
    color: #fff;
}

.alp-free-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 30px; /* Space for close button */
}

.alp-free-badge-large {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 6px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-height: 24px;
    white-space: nowrap;
    flex-shrink: 0;
}

.alp-free-text {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    flex-grow: 1;
}

.alp-free-upgrade-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.alp-free-upgrade-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.alp-free-upgrade-btn:focus {
    color: #fff;
    text-decoration: none;
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.alp-free-upgrade-btn svg {
    transition: transform 0.3s ease;
}

.alp-free-upgrade-btn:hover svg {
    transform: translateX(2px);
}

.alp-free-banner .notice-dismiss {
    position: absolute;
    top: 0;
    right: 1px;
    padding: 9px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.alp-free-banner .notice-dismiss:hover {
    color: #fff;
}

.alp-free-banner .notice-dismiss:before {
    background: none;
    color: rgba(255, 255, 255, 0.8);
    content: "\f153";
    display: block;
    font: normal 16px/20px dashicons;
    speak: never;
    height: 20px;
    text-align: center;
    width: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.alp-free-banner .notice-dismiss:hover:before {
    color: #fff;
}

/* Responsive adjustments for premium features */
@media screen and (max-width: 782px) {
    .alp-setting-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .alp-premium-setting-container {
        padding: 15px;
    }
    
    .alp-premium-upgrade-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .alp-premium-upgrade-text h4 {
        font-size: 15px;
    }
    
    .alp-premium-upgrade-text p {
        font-size: 12px;
    }
    
    .alp-premium-upgrade-btn-compact {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .alp-premium-active-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .alp-premium-active-text {
        font-size: 14px;
    }
    
    .alp-premium-badge-large {
        font-size: 13px;
        padding: 5px 10px;
    }
    
    .alp-free-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .alp-free-text {
        font-size: 14px;
    }
    
    .alp-free-badge-large {
        font-size: 13px;
        padding: 5px 10px;
    }
    
    .alp-free-upgrade-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .alp-welcome-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding-right: 20px;
    }
    
    .alp-welcome-text {
        font-size: 14px;
    }
    
    .alp-welcome-badge-large {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* Horizontal Tab Navigation */
.alp-horizontal-tabs {
    display: flex;
    margin: 20px 0 30px 0;
    border-bottom: 1px solid #ddd;
    background: #fff;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.alp-tab-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #646970;
    background: #f6f7f7;
    border-right: 1px solid #ddd;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

.alp-tab-item:hover {
    color: #1d2327;
    background: #fff;
    box-shadow: none;
}

.alp-tab-item:focus {
    color: #1d2327;
    outline: 2px solid #2271b1;
    outline-offset: -2px;
    box-shadow: none;
}

.alp-tab-item.alp-tab-active {
    color: #1d2327;
    background: #fff;
    border-bottom: 3px solid #2271b1;
    margin-bottom: -1px;
    font-weight: 600;
}

.alp-tab-item:last-child {
    border-right: none;
}

.alp-tab-item .dashicons {
    margin-right: 8px;
    font-size: 16px;
    line-height: 1;
    vertical-align: middle;
}

.alp-tab-text {
    vertical-align: middle;
}

/* Responsive design for tabs */
@media screen and (max-width: 782px) {
    .alp-horizontal-tabs {
        flex-wrap: wrap;
        border-radius: 0;
    }
    
    .alp-tab-item {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
        font-size: 12px;
        border-right: none;
        border-bottom: 1px solid #ddd;
        min-width: 0;
    }
    
    .alp-tab-item:last-child {
        border-bottom: none;
    }
    
    .alp-tab-item .dashicons {
        margin-right: 4px;
        font-size: 14px;
    }
    
    .alp-tab-text {
        font-size: 11px;
    }
    
    .alp-tab-item.alp-tab-active {
        border-bottom: 3px solid #2271b1;
        margin-bottom: 0;
    }
}

@media screen and (max-width: 480px) {
    .alp-tab-item {
        padding: 8px 4px;
        flex-direction: column;
        gap: 2px;
    }
    
    .alp-tab-item .dashicons {
        margin-right: 0;
        margin-bottom: 2px;
    }
    
    .alp-tab-text {
        font-size: 10px;
        text-align: center;
    }
}

.alp-premium-upgrade-link {
    color: #764ba2;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s;
}
.alp-premium-upgrade-link:hover,
.alp-premium-upgrade-link:focus {
    color: #4f2c6e;
    text-decoration: none;
}

/* IP Lookup Dropdown Styles */
.alp-ip-lookup-container {
    position: relative;
    display: inline-block;
}

.alp-ip-lookup-link {
    color: #2271b1;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px dotted #2271b1;
}

.alp-ip-lookup-link:hover {
    color: #135e96;
    border-bottom-color: #135e96;
}

.alp-ip-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 300px;
    max-width: 400px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 5px;
}

.alp-ip-info {
    padding: 0;
}

.alp-ip-header {
    background: #f0f0f1;
    padding: 12px 15px;
    border-bottom: 1px solid #c3c4c7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alp-ip-header strong {
    color: #1d2327;
    font-size: 14px;
}

.alp-ip-cached {
    background: #00a32a;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: normal;
}

.alp-ip-close {
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #646970;
    background: none;
    border: none;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alp-ip-close:hover {
    color: #d63638;
}

.alp-ip-content {
    padding: 15px;
}

.alp-ip-row {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.alp-ip-row strong {
    color: #1d2327;
    display: inline-block;
    min-width: 90px;
}

.alp-ip-loading {
    padding: 20px;
    text-align: center;
    color: #646970;
    font-style: italic;
}

.alp-ip-error {
    padding: 15px;
    color: #d63638;
    background: #fcf0f1;
    border-left: 4px solid #d63638;
    font-size: 13px;
}

/* Premium Upgrade Styles */
.alp-premium-message {
    text-align: center;
}

.alp-premium-message p:first-child {
    font-size: 16px;
    margin-bottom: 10px;
    color: #135e96;
}

.alp-premium-message p:first-child strong {
    color: #135e96;
}

.alp-premium-preview {
    margin: 20px 0;
    text-align: center;
}

.alp-blur-preview {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alp-preview-caption {
    font-size: 12px;
    color: #646970;
    font-style: italic;
    margin-top: 8px;
    margin-bottom: 0;
}

.alp-premium-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #c3c4c7;
}

.alp-upgrade-btn {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    padding: 8px 16px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.alp-upgrade-btn:hover {
    background: #135e96;
    color: #fff;
    text-decoration: none;
}

.alp-upgrade-btn:focus {
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px #2271b1;
    outline: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .alp-ip-dropdown {
        min-width: 280px;
        max-width: 95vw;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Ensure dropdown appears above other elements */
.alp-logs-table .alp-ip-dropdown {
    z-index: 1001;
}

/* Expandable Row Styles */
.alp-log-row {
    position: relative;
    transition: all 0.3s ease;
}

/* Day section label row when sorted by Date (see alp-admin.js renderLogs) */
.alp-logs-table tbody tr.alp-day-divider-row td.alp-day-divider-cell {
    background: #d8e6f0;
    border-top: 2px solid #4a7ead;
    border-bottom: 1px solid #8eb4d4;
    padding: 10px 12px;
    text-align: center;
    vertical-align: middle;
}

.alp-logs-table tbody tr.alp-day-divider-row.alp-day-divider-first td.alp-day-divider-cell {
    border-top: none;
}

.alp-day-divider-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.alp-day-divider-label {
    display: inline-block;
    max-width: 100%;
    padding: 5px 16px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: #153e5c;
    letter-spacing: 0.02em;
    text-align: center;
    background: #f6faff;
    border: 1px solid #3d6fa3;
    border-radius: 999px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 1px 2px rgba(21, 62, 92, 0.08);
}

.alp-log-row.expanded {
    background-color: #f8f9fa !important;
}

/* Expand/Collapse Button - styled to match action buttons */
.alp-expand-btn {
    background: #2271b1 !important;
    color: #ffffff !important;
    border: 1px solid #2271b1 !important;
    border-radius: 4px !important;
    padding: 4px 12px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    box-shadow: none !important;
    height: auto !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.alp-expand-btn:hover {
    background: #135e96 !important;
    border-color: #135e96 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.alp-expand-btn:focus {
    outline: 2px solid #2271b1 !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
}

.alp-expand-btn .dashicons {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
    transition: transform 0.3s ease !important;
}

.alp-log-row.expanded .alp-expand-btn .dashicons {
    transform: rotate(180deg) !important;
}

/* Expanded Details Container */
.alp-log-details {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    margin: 8px 0 4px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    animation: slideDown 0.3s ease-out;
    overflow: hidden;
}

/* Details row styling - initially hidden, shown when expanded */
.alp-log-details-row {
    display: none;
}

.alp-log-row.expanded + .alp-log-details-row {
    display: table-row;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

/* Details Header */
.alp-details-header {
    background: linear-gradient(135deg, #f6f7f8 0%, #eef1f4 100%);
    padding: 12px 16px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alp-details-title {
    font-weight: 600;
    color: #1d2327;
    margin: 0;
    font-size: 14px;
}

.alp-details-actions {
    display: flex;
    gap: 8px;
}

/* Action Buttons */
.alp-show-all-btn,
.alp-copy-raw-btn {
    background: #2271b1 !important;
    color: #ffffff !important;
    border: 1px solid #2271b1 !important;
    border-radius: 4px !important;
    padding: 4px 12px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    box-shadow: none !important;
    height: auto !important;
    line-height: 1.4 !important;
}

.alp-show-all-btn:hover,
.alp-copy-raw-btn:hover {
    background: #135e96 !important;
    border-color: #135e96 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.alp-copy-raw-btn.copied {
    background: #46b450 !important;
    border-color: #46b450 !important;
}

/* Details Content */
.alp-details-content {
    padding: 16px;
}

.alp-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.alp-details-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.alp-details-section-title {
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 12px 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.alp-details-section-title .dashicons {
    color: #2271b1;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Detail Items */
.alp-detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.alp-detail-item:hover {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 8px;
    margin: 0 -8px 10px -8px;
    border-bottom: 1px solid #e9ecef;
}

.alp-detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.alp-detail-label {
    font-weight: 600;
    color: #50575e;
    min-width: 140px;
    flex-shrink: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-right: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.alp-detail-label .dashicons {
    color: #2271b1;
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.alp-detail-value {
    flex: 1;
    color: #1d2327;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

/* Metadata Table */
.alp-metadata-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.alp-metadata-table th,
.alp-metadata-table td {
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    font-size: 12px;
}

.alp-metadata-table th {
    background: #f1f3f4;
    font-weight: 600;
    color: #50575e;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.alp-metadata-table td {
    color: #1d2327;
}

.alp-metadata-table tr:last-child th,
.alp-metadata-table tr:last-child td {
    border-bottom: none;
}

/* Links and Special Values */
.alp-detail-link {
    color: #2271b1 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: color 0.2s ease !important;
}

.alp-detail-link:hover {
    color: #135e96 !important;
    text-decoration: underline !important;
}

.alp-detail-link .dashicons {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
}

/* Highlighted Values */
.alp-detail-highlight {
    background: #fff3cd;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #ffeaa7;
    color: #856404;
    font-weight: 500;
}

.alp-detail-error {
    background: #f8d7da;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #f5c6cb;
    color: #721c24;
    font-weight: 500;
}

.alp-detail-success {
    background: #d4edda;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #c3e6cb;
    color: #155724;
    font-weight: 500;
}

/* No Data Message */
.alp-no-metadata {
    color: #6c757d;
    font-style: italic;
    font-size: 12px;
    text-align: center;
    padding: 12px;
}

/* Mobile Responsive */
@media screen and (max-width: 782px) {
    .alp-details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .alp-details-header {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .alp-details-actions {
        justify-content: center;
    }
    
    .alp-detail-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .alp-detail-label {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 4px;
    }
    
    .alp-expand-btn {
        font-size: 12px !important;
        padding: 4px 10px !important;
    }
}

/* Show All Details Modal */
.alp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.alp-modal {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalShow 0.3s ease-out;
}

@keyframes modalShow {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.alp-modal-header {
    background: #2271b1;
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #135e96;
}

.alp-modal-title {
    font-weight: 600;
    margin: 0;
    font-size: 16px;
    color: #ffffff !important;
}

.alp-modal-close {
    background: none !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 20px !important;
    cursor: pointer !important;
    padding: 4px !important;
    margin: 0 !important;
    transition: opacity 0.2s ease !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
}

.alp-modal-close:hover {
    opacity: 0.8 !important;
    background: none !important;
    box-shadow: none !important;
}

.alp-modal-content {
    padding: 20px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

.alp-modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 20px 24px;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
}

.alp-raw-data {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 16px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 400px;
    overflow-y: auto;
    color: #1d2327;
}

/* Copy Success Message */
.alp-copy-success {
    position: fixed;
    top: 50px;
    right: 20px;
    background: #46b450;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000000;
    font-weight: 500;
    font-size: 14px;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading State */
.alp-details-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

.alp-details-loading .dashicons {
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Value Changes Styling */
.alp-value-changes {
    display: grid;
    gap: 16px;
    margin-top: 8px;
}

.alp-value-change-item {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    border-left: 4px solid #e9ecef;
}

.alp-value-change-item.alp-old-value-item {
    border-left-color: #dc3545;
    background: #fef5f5;
}

.alp-value-change-item.alp-new-value-item {
    border-left-color: #28a745;
    background: #f5f9f5;
}

.alp-value-change-label {
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 8px 0;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.alp-value-change-label .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.alp-value-change-content {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 8px 12px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    max-height: 200px;
    overflow-y: auto;
    word-break: break-word;
}

.alp-old-value {
    border-left: 3px solid #dc3545;
}

.alp-new-value {
    border-left: 3px solid #28a745;
}

/* Enhanced metadata table styling */
.alp-metadata-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.alp-metadata-table th,
.alp-metadata-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    font-size: 12px;
    vertical-align: top;
}

.alp-metadata-table th {
    background: #f1f3f4;
    font-weight: 600;
    color: #50575e;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: sticky;
    top: 0;
}

.alp-metadata-table td {
    color: #1d2327;
}

.alp-metadata-table tr:last-child th,
.alp-metadata-table tr:last-child td {
    border-bottom: none;
}

.alp-metadata-table tr:hover {
    background: #f8f9fa;
}

.alp-metadata-table code {
    background: #f1f3f4;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 11px;
}

/* Enhanced detail sections */
.alp-details-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.alp-details-section:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Section-specific colors - using class-based approach instead of :has() */
.alp-details-section.alp-section-basic {
    border-left: 4px solid #2271b1;
}

.alp-details-section.alp-section-user {
    border-left: 4px solid #00a32a;
}

.alp-details-section.alp-section-network {
    border-left: 4px solid #8e44ad;
}

.alp-details-section.alp-section-object {
    border-left: 4px solid #f39c12;
}

.alp-details-section.alp-section-wordpress {
    border-left: 4px solid #21759b;
}

.alp-details-section.alp-section-changes {
    border-left: 4px solid #e74c3c;
}

.alp-details-section.alp-section-metadata {
    border-left: 4px solid #9b59b6;
}

.alp-details-section.alp-section-raw {
    border-left: 4px solid #34495e;
}

/* Enhanced detail items */
.alp-detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.alp-detail-item:hover {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 8px;
    margin: 0 -8px 10px -8px;
    border-bottom: 1px solid #e9ecef;
}

.alp-detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Enhanced grid layout for better responsiveness */
.alp-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 8px;
}

/* Full-width sections */
.alp-details-section[style*="grid-column: 1 / -1"] {
    background: #fafbfc;
    border: 2px dashed #e9ecef;
}

/* Maintain original styling for metadata and raw sections using span 2 */
.alp-details-section[style*="grid-column: span 2"] {
    background: #fafbfc;
    border: 2px dashed #e9ecef;
}

/* Enhanced responsive design */
@media screen and (max-width: 1200px) {
    .alp-details-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 16px;
    }
}

@media screen and (max-width: 782px) {
    .alp-details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .alp-value-changes {
        gap: 12px;
    }
    
    .alp-value-change-item {
        padding: 10px;
    }
    
    .alp-metadata-table th,
    .alp-metadata-table td {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .alp-detail-item:hover {
        margin: 0 -4px 10px -4px;
        padding: 8px 4px;
    }
}

/* IP Information link styling in expanded details */
.alp-detail-value .alp-ip-lookup-container {
    display: inline-block;
    position: relative;
}

.alp-detail-value .alp-ip-lookup-link {
    color: #2271b1 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    transition: all 0.2s ease !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.alp-detail-value .alp-ip-lookup-link:hover {
    background: #f0f6fc !important;
    color: #135e96 !important;
    text-decoration: underline !important;
}

.alp-detail-value .alp-ip-lookup-link:focus {
    outline: 2px solid #2271b1 !important;
    outline-offset: 1px !important;
}

/* Enhanced separator styling */
.alp-detail-value code + span::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 12px;
    background: #c3c4c7;
    margin: 0 8px;
    vertical-align: middle;
}

/* Copy IP Button Styles */
.alp-copy-ip-btn {
    background: #2271b1 !important;
    color: #ffffff !important;
    border: 1px solid #2271b1 !important;
    border-radius: 4px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    box-shadow: none !important;
    height: auto !important;
    line-height: 1.4 !important;
    width: 100% !important;
    justify-content: center !important;
}

.alp-copy-ip-btn:hover {
    background: #135e96 !important;
    border-color: #135e96 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.alp-copy-ip-btn.copied {
    background: #46b450 !important;
    border-color: #46b450 !important;
}

.alp-copy-ip-btn svg {
    flex-shrink: 0;
}

/* Large Map Modal Header Actions */
.alp-map-modal-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.alp-copy-ip-large-btn {
    width: auto !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
}

/* === DATEPICKER STYLES === */

/* Override jQuery UI datepicker to match Activity Log Pro UI */
.ui-datepicker {
    width: 17em !important;
    padding: 0 !important;
    display: none;
    background: #ffffff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 13px;
    z-index: 10000;
}

/* Datepicker header */
.ui-datepicker .ui-datepicker-header {
    position: relative;
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
    background: #f6f7f7;
    border-radius: 4px 4px 0 0;
    color: #1d2327;
}

/* Navigation arrows - Fix missing arrows and remove text */
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    position: absolute;
    top: 8px;
    width: 2em;
    height: 2em;
    cursor: pointer;
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
    text-decoration: none !important;
    color: transparent !important;
    overflow: hidden;
}

.ui-datepicker .ui-datepicker-prev {
    left: 8px;
}

.ui-datepicker .ui-datepicker-next {
    right: 8px;
}

/* REMOVED: Navigation arrow hover effects for Export page datepicker
.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
    background: #f0f0f1;
    border-color: #8c8f94;
}
*/

/* Hide the default text completely and show CSS arrows */
.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
    display: block !important;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -8px;
    margin-top: -8px;
    background: none !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    width: 16px;
    height: 16px;
    color: transparent !important;
    font-size: 0 !important;
}

/* Left arrow */
.ui-datepicker .ui-datepicker-prev span:before {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-right: 6px solid #646970;
    text-indent: 0;
    font-size: 13px;
}

/* Right arrow */
.ui-datepicker .ui-datepicker-next span:before {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid #646970;
    text-indent: 0;
    font-size: 13px;
}

/* REMOVED: Arrow hover color changes for Export page datepicker
.ui-datepicker .ui-datepicker-prev:hover span:before {
    border-right-color: #2271b1;
}

.ui-datepicker .ui-datepicker-next:hover span:before {
    border-left-color: #2271b1;
}
*/

/* Month/Year title */
.ui-datepicker .ui-datepicker-title {
    margin: 0 2.3em;
    line-height: 2em;
    text-align: center;
    font-weight: 600;
    color: #1d2327;
}

/* Month/Year dropdowns */
.ui-datepicker .ui-datepicker-title select {
    font-size: 12px;
    margin: 1px 2px;
    padding: 2px 4px;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
    background: #ffffff;
    color: #1d2327;
}

.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    width: 45%;
}

/* Calendar table */
.ui-datepicker table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
}

/* Table header - day names */
.ui-datepicker th {
    padding: 8px 4px;
    text-align: center;
    font-weight: 600;
    border: 0;
    color: #646970;
    background: #f6f7f7;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Table cells */
.ui-datepicker td {
    border: 0;
    padding: 1px;
    text-align: center;
}

/* Date links - removed transitions */
.ui-datepicker td span,
.ui-datepicker td a {
    display: block;
    padding: 6px;
    text-align: center;
    text-decoration: none;
    border-radius: 3px;
    color: #1d2327;
    font-size: 13px;
    line-height: 1.4;
}

/* REMOVED: Date cell hover effects for Export page datepicker
.ui-datepicker td a:hover {
    background: #f0f0f1;
    color: #1d2327;
    border: 1px solid #c3c4c7;
    padding: 5px; 
}
*/

/* Today's date */
.ui-datepicker td.ui-datepicker-today a {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 600;
}

/* REMOVED: Today date hover effects for Export page datepicker
.ui-datepicker td.ui-datepicker-today a:hover {
    background: #bfdbfe;
    color: #1d4ed8;
}
*/

/* Selected date */
.ui-datepicker td.ui-datepicker-current-day a,
.ui-datepicker td.ui-state-active a {
    background: #2271b1 !important;
    color: #ffffff !important;
    font-weight: 600;
}

/* REMOVED: Selected/active date hover effects for Export page datepicker
.ui-datepicker td.ui-datepicker-current-day a:hover,
.ui-datepicker td.ui-state-active a:hover {
    background: #135e96 !important;
    color: #ffffff !important;
}
*/

/* Other month dates */
.ui-datepicker td.ui-datepicker-other-month span {
    color: #c3c4c7;
}

/* Unselectable dates */
.ui-datepicker td.ui-datepicker-unselectable span {
    color: #c3c4c7;
    background: transparent;
}

/* Week column */
.ui-datepicker .ui-datepicker-week-col {
    padding: 6px 4px;
    text-align: center;
    color: #646970;
    font-weight: normal;
    font-size: 11px;
}

/* Button pane (if used) */
.ui-datepicker .ui-datepicker-buttonpane {
    background: #f6f7f7;
    margin: 0;
    padding: 8px;
    border-top: 1px solid #e5e5e5;
    border-radius: 0 0 4px 4px;
    text-align: center;
}

.ui-datepicker .ui-datepicker-buttonpane button {
    margin: 0 4px;
    padding: 4px 12px;
    cursor: pointer;
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
    color: #2271b1;
    font-size: 12px;
    text-decoration: none;
}

/* REMOVED: Button hover effects for Export page datepicker
.ui-datepicker .ui-datepicker-buttonpane button:hover {
    background: #f0f0f1;
    border-color: #8c8f94;
}
*/

.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current {
    font-weight: 600;
}

/* Multiple calendars */
.ui-datepicker.ui-datepicker-multi {
    width: auto;
}

.ui-datepicker-multi .ui-datepicker-group {
    float: left;
    margin-right: 10px;
}

.ui-datepicker-multi .ui-datepicker-group:last-child {
    margin-right: 0;
}

.ui-datepicker-multi .ui-datepicker-group table {
    width: 95%;
    margin: 0 auto 10px;
}

/* RTL support */
.ui-datepicker-rtl {
    direction: rtl;
}

.ui-datepicker-rtl .ui-datepicker-prev {
    right: 8px;
    left: auto;
}

.ui-datepicker-rtl .ui-datepicker-next {
    left: 8px;
    right: auto;
}

/* Responsive behavior */
@media screen and (max-width: 782px) {
    .ui-datepicker {
        font-size: 14px;
        width: 18em !important;
    }
    
    .ui-datepicker td span,
    .ui-datepicker td a {
        padding: 8px 6px;
        font-size: 14px;
    }
    
    .ui-datepicker th {
        padding: 10px 4px;
        font-size: 12px;
    }
    
    .ui-datepicker .ui-datepicker-header {
        padding: 12px 0;
    }
    
    .ui-datepicker .ui-datepicker-prev,
    .ui-datepicker .ui-datepicker-next {
        width: 2.5em;
        height: 2.5em;
        top: 10px;
    }
    
    .ui-datepicker .ui-datepicker-prev {
        left: 10px;
    }
    
    .ui-datepicker .ui-datepicker-next {
        right: 10px;
    }
}

/* Focus styles for accessibility */
.ui-datepicker td a:focus {
    outline: 2px solid #2271b1;
    outline-offset: -2px;
    background: #f0f0f1;
}

.ui-datepicker .ui-datepicker-prev:focus,
.ui-datepicker .ui-datepicker-next:focus {
    outline: 2px solid #2271b1;
    outline-offset: -2px;
}

/* Fix for any conflicting WordPress admin styles */
.ui-datepicker * {
    box-sizing: border-box;
}

/* Ensure datepicker appears above other elements */
.ui-datepicker {
    z-index: 999999 !important;
}

/* Custom styling for date input fields to match the datepicker - removed transitions */
.alp-datepicker {
    background: #ffffff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 13px;
    line-height: 1.4;
    color: #1d2327;
}

.alp-datepicker:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.alp-datepicker::placeholder {
    color: #646970;
    opacity: 1;
}

/* === END DATEPICKER STYLES === */


/* === SETTINGS PAGE LAYOUT === */

/* Two-column layout for settings page */
.alp-settings-layout {
    display: flex;
    gap: 20px;
    margin-top: 20px; /* Add consistent top margin for both panels */
    margin-right: 20px; /* Add right margin to prevent edge touching */
    align-items: flex-start; /* Align both panels to start at the same level but don't stretch */
}

.alp-settings-main {
    flex: 1;
    min-width: 0; /* Prevent flex item from overflowing */
    margin-top: 0; /* Remove top margin to align with sidebar */
}

.alp-settings-sidebar {
    flex: 0 0 416px; /* Increased from 320px to 416px (30% wider) */
    width: 416px;
    /* Remove the negative margin and padding since we're fixing the root cause */
}

.alp-settings-sidebar > .alp-newsletter-signup:first-child {
    margin-top: 0 !important; /* Ensure no top margin on first newsletter box */
}

/* Premium promotional panel */
.alp-premium-promo {
    background: linear-gradient(135deg, #fafbff 0%, #f8f9ff 100%);
    border: 2px solid #f0f6fc;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-top: 0 !important; /* Force remove top margin to rely on newsletter bottom margin */
}

.alp-premium-title-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.alp-premium-title-header h2 {
    color: #1d2327;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.alp-premium-title-header .alp-premium-badge {
    margin-top: 2px;
    flex-shrink: 0;
}

.alp-premium-promo h2 {
    color: #1d2327;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.alp-premium-promo > p {
    color: #50575e;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

/* Premium features list */
.alp-premium-features {
    margin: 0 0 24px 0;
}

.alp-premium-feature {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f1;
}

.alp-premium-feature:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.alp-premium-feature-icon {
    flex: 0 0 auto;
    margin-top: 2px;
}

.alp-premium-feature-content {
    flex: 1;
    min-width: 0;
}

.alp-premium-feature-content h4 {
    color: #1d2327;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.alp-premium-feature-content p {
    color: #646970;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

.alp-new-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    background: #e97316;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
    line-height: 1.6;
}

/* Premium upgrade button */
.alp-premium-upgrade-btn {
    display: block;
    margin: 0 auto;
    width: fit-content;
    min-width: 200px;
    max-width: 280px;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    justify-content: center;
    text-align: center;
}

.alp-premium-upgrade-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
    color: #ffffff !important;
}

.alp-premium-upgrade-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.alp-premium-upgrade-btn svg {
    transition: transform 0.2s ease;
}

.alp-premium-upgrade-btn:hover svg {
    transform: translateX(2px);
}

/* Premium active state styles */
.alp-premium-active-features {
    margin: 0;
}

.alp-premium-active-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alp-premium-active-badge span {
    color: #059669;
    font-size: 14px;
    font-weight: 600;
}

.alp-premium-active-list {
    margin: 0;
}

.alp-premium-active-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f1;
}

.alp-premium-active-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.alp-premium-active-item span {
    color: #374151;
    font-size: 14px;
    line-height: 1.4;
}

.alp-premium-active-item .alp-new-badge {
    font-size: 10px;
    line-height: 1.6;
    color: #fff;
}

/* Responsive design for settings layout */
@media screen and (max-width: 1200px) {
    .alp-settings-layout {
        flex-direction: column;
    }
    
    .alp-settings-sidebar {
        flex: none;
        width: 100%;
        display: block; /* Reset to block layout on smaller screens */
    }
    
    .alp-premium-promo {
        flex: none; /* Reset flex on smaller screens */
    }
}

/* FREE banner width consistency on settings page */
body.activity-log-pro_page_activity-log-pro-settings .alp-free-banner,
body.dashboard_page_activity-log-pro-settings .alp-free-banner,
body.tools_page_activity-log-pro-settings .alp-free-banner {
    margin-right: 20px; /* Match settings layout margin */
}

/* PREMIUM banner width consistency on settings page */
body.activity-log-pro_page_activity-log-pro-settings .alp-premium-active-banner,
body.dashboard_page_activity-log-pro-settings .alp-premium-active-banner,
body.tools_page_activity-log-pro-settings .alp-premium-active-banner {
    margin-right: 20px; /* Match settings layout margin */
}

@media screen and (max-width: 782px) {
    .alp-settings-layout {
        gap: 15px;
        margin-top: 15px;
    }
    
    .alp-premium-promo {
        padding: 20px;
    }
    
    .alp-premium-promo h2 {
        font-size: 16px;
    }
    
    .alp-premium-feature {
        gap: 10px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
    
    .alp-premium-feature-content h4 {
        font-size: 13px;
    }
    
    .alp-premium-feature-content p {
        font-size: 12px;
    }
    
    .alp-premium-upgrade-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* === END SETTINGS PAGE LAYOUT === */

/* === INTEGRATION STATUS INDICATORS === */
.alp-integration-status-indicators {
    margin: 15px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.alp-status-header {
    font-weight: 600;
    font-size: 14px;
    color: #495057;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.alp-status-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.alp-status-indicator:last-child {
    margin-bottom: 0;
}

.alp-status-icon {
    width: 16px !important;
    height: 16px !important;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alp-status-icon svg {
    width: 16px;
    height: 16px;
}

.alp-status-success .alp-status-icon {
    color: #1e7e34;
    opacity: 1;
}

.alp-status-error .alp-status-icon {
    color: #c82333;
    opacity: 1;
}

.alp-status-label {
    color: #495057;
    font-weight: 500;
}

@media screen and (max-width: 782px) {
    .alp-integration-status-indicators {
        padding: 12px;
        margin: 12px 0;
    }
    
    .alp-status-header {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .alp-status-indicator {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .alp-status-icon {
        width: 14px !important;
        height: 14px !important;
        margin-right: 8px;
    }
    
    .alp-status-icon svg {
        width: 10px !important;
        height: 10px !important;
    }
}
/* === END INTEGRATION STATUS INDICATORS === */

/* Statistics refresh button styles */
.alp-stats-actions {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

/* Newsletter signup box styles */
.alp-newsletter-signup {
    background: linear-gradient(135deg, #fafbff 0%, #f8f9ff 100%);
    border: 2px solid #f0f6fc;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px !important; /* Reduced margin for better spacing */
    margin-top: 0 !important; /* Force remove any top margin */
    position: relative; /* Keep relative for close button positioning */
    padding-right: 50px; /* Space for close button */
    flex-shrink: 0; /* Don't shrink this element */
}

/* Newsletter close button */
.alp-newsletter-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #8c8f94;
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.alp-newsletter-close:hover {
    color: #1d2327;
    background-color: rgba(0, 0, 0, 0.05);
}

.alp-newsletter-close:focus {
    outline: 2px solid #667eea;
    outline-offset: 1px;
    color: #1d2327;
}

.alp-newsletter-title-header {
    margin-bottom: 12px;
}

.alp-newsletter-title-header h2 {
    color: #1d2327;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.alp-newsletter-signup > p {
    color: #50575e;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

/* Newsletter form styles */
.alp-newsletter-form {
    margin: 0;
}

.alp-newsletter-field {
    margin-bottom: 16px;
}

.alp-newsletter-field:last-of-type {
    margin-bottom: 20px;
}

.alp-newsletter-field label {
    display: block;
    color: #1d2327;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

.alp-newsletter-field input[type="text"],
.alp-newsletter-field input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    color: #1d2327;
    background: #ffffff;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.alp-newsletter-field input[type="text"]:focus,
.alp-newsletter-field input[type="email"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 1px #667eea;
}

.alp-newsletter-field input[type="text"]::placeholder,
.alp-newsletter-field input[type="email"]::placeholder {
    color: #8c8f94;
}

/* Newsletter signup button */
.alp-newsletter-signup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    cursor: pointer;
}

.alp-newsletter-signup-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
    color: #ffffff;
}

.alp-newsletter-signup-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.alp-newsletter-signup-btn:active {
    transform: translateY(0);
}

.alp-newsletter-signup-btn svg {
    transition: transform 0.2s ease;
}

.alp-newsletter-signup-btn:hover svg {
    transform: translateX(2px);
}

/* Newsletter checkbox field styles */
.alp-newsletter-checkbox-field {
    margin-bottom: 20px !important;
}

.alp-newsletter-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
    color: #50575e;
    font-weight: normal !important;
    margin-bottom: 0 !important;
}

.alp-newsletter-checkbox-label input[type="checkbox"] {
    margin: 0;
    margin-top: 2px;
    flex-shrink: 0;
}

.alp-newsletter-checkbox-text {
    flex: 1;
}

.alp-newsletter-checkbox-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.alp-newsletter-checkbox-text a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Newsletter message styles */
.alp-newsletter-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.4;
}

.alp-newsletter-message.success {
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alp-newsletter-message.error {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Button loading state */
.alp-newsletter-signup-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.alp-newsletter-signup-btn:disabled:hover {
    transform: none !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Responsive adjustments for newsletter box */
@media (max-width: 1200px) {
    .alp-newsletter-signup {
        position: static;
    }
}

@media screen and (max-width: 782px) {
    .alp-newsletter-signup {
        padding: 20px;
        padding-right: 45px;
    }
    
    .alp-newsletter-close {
        top: 10px;
        right: 10px;
        width: 28px;
        height: 28px;
        font-size: 20px;
    }
}

.alp-stats-refresh-btn {
    background: #0073aa;
    border: none;
    border-radius: 3px;
    color: white;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    min-width: 32px;
    height: 32px;
}

.alp-stats-refresh-btn:hover {
    background: #005a87;
}

.alp-stats-refresh-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.alp-stats-refresh-btn.alp-loading svg {
    animation: alp-spin 1s linear infinite;
}

/* Loading states for stats */
.alp-stats-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.alp-stats-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

@keyframes alp-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Description toggle styles - improved */
.alp-description-toggle-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.alp-description-toggle-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #2271b1;
    cursor: pointer;
    font-size: 11px;
    padding: 2px 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    align-self: flex-start;
    transition: all 0.2s ease;
    border-radius: 3px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.alp-description-toggle-btn:hover {
    color: #135e96;
    background: rgba(34, 113, 177, 0.05);
    border-color: rgba(34, 113, 177, 0.2);
}

.alp-description-toggle-btn:focus {
    outline: 2px solid #2271b1;
    outline-offset: 1px;
    border-radius: 3px;
}

.alp-description-toggle-btn .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.alp-description-short,
.alp-description-full {
    line-height: 1.5;
    word-break: break-word;
    color: #1d2327;
}

.alp-description-short {
    position: relative;
}

/* Add ellipsis styling for better visual indication */
.alp-description-short::after {
    content: "";
    display: inline;
}

/* Change highlighting in descriptions (from/to values) */
.alp-change-from,
.alp-change-to {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 0.95em;
    font-weight: 500;
    word-break: break-all;
    line-height: 1.6;
    margin: 0 2px;
}

.alp-change-from {
    background: linear-gradient(135deg, #fee 0%, #fdd 100%);
    border: 1px solid #fcc;
    color: #c33;
}

.alp-change-to {
    background: linear-gradient(135deg, #efe 0%, #dfd 100%);
    border: 1px solid #cfc;
    color: #3a3;
}

/* Ensure changes are readable when text wraps */
.alp-detail-value .alp-change-from,
.alp-detail-value .alp-change-to {
    max-width: 100%;
    white-space: normal;
}

/* Excluded Option Names Examples Styling */
.alp-exclusion-examples {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
}

.alp-exclusion-examples h4 {
    margin: 0 0 12px 0;
    color: #1d2327;
    font-size: 13px;
    font-weight: 600;
}

.alp-example-category {
    margin-bottom: 15px;
}

.alp-example-category:last-child {
    margin-bottom: 0;
}

.alp-example-header {
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 3px;
}

.alp-example-header.exact {
    background: #e7f3ff;
    border-left: 3px solid #0073aa;
}

.alp-example-header.wildcard {
    background: #fff2e7;
    border-left: 3px solid #d63638;
}

.alp-example-header strong {
    font-size: 12px;
}

.alp-example-header.exact strong {
    color: #0073aa;
}

.alp-example-header.wildcard strong {
    color: #d63638;
}

.alp-example-items {
    margin-left: 15px;
    line-height: 1.6;
}

.alp-example-item {
    margin-bottom: 6px;
}

.alp-example-item:last-child {
    margin-bottom: 0;
}

.alp-example-item code {
    background: #f1f1f1;
    padding: 2px 6px;
    border-radius: 3px;
}

.alp-example-item .description {
    color: #646970;
    font-size: 12px;
}

.alp-exclusion-preview {
    margin-top: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
}

.alp-exclusion-preview p {
    margin: 5px 0;
    font-style: italic;
}

/* Review request box styles */
.alp-review-request {
    background: linear-gradient(135deg, #fff9ec 0%, #fef3e0 100%);
    border: 2px solid #f5e6d3;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    position: relative;
}

.alp-review-title-header {
    margin-bottom: 12px;
}

.alp-review-title-header h2 {
    color: #1d2327;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.alp-review-request > p {
    color: #50575e;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.alp-review-request a {
    color: #f59e0b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.alp-review-request a:hover {
    color: #d97706;
    text-decoration: underline;
}

.alp-review-request a:focus {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

.alp-review-request strong {
    color: #f59e0b;
    font-weight: 700;
}

@media screen and (max-width: 1200px) {
    .alp-review-request {
        margin-top: 20px;
    }
}

@media screen and (max-width: 782px) {
    .alp-review-request {
        padding: 20px;
    }
    
    .alp-review-title-header h2 {
        font-size: 16px;
    }
    
    .alp-review-request > p {
        font-size: 13px;
    }
}

/* Install Premium Banner Styles */
.alp-install-premium-banner {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 1px solid #d1d5db !important;
    border-radius: 8px;
    color: #374151;
    padding: 0;
    position: relative;
    overflow: hidden;
    margin: 15px 0;
}

.alp-install-premium-content {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 15px;
}

.alp-install-badge-large {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.alp-install-premium-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.alp-install-premium-text a {
    color: #3b82f6 !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

.alp-install-premium-text a:hover {
    color: #2563eb !important;
}

.alp-install-premium-btn {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
    border: 2px solid rgba(59, 130, 246, 0.2) !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.3s ease !important;
    font-size: 13px !important;
    flex-shrink: 0;
}

.alp-install-premium-btn:hover {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    transform: translateY(-1px) !important;
}

.alp-install-premium-btn svg {
    width: 14px;
    height: 14px;
}

/* Admin Footer Styles */
.alp-admin-footer {
    margin-top: 40px;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #e1e5e9;
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
}

.alp-footer-logo {
    margin-bottom: 15px;
}

.alp-footer-logo-link {
    display: inline-block;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.alp-footer-logo-link:hover {
    opacity: 1;
}

.alp-footer-logo-image {
    max-width: 200px;
    height: auto;
    max-height: 40px;
    width: auto;
    vertical-align: middle;
    object-fit: contain;
}

.alp-footer-rating {
    margin-bottom: 20px;
}

.alp-footer-rating p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.alp-footer-rating a {
    color: #1e88e5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.alp-footer-rating a:hover {
    color: #1565c0;
    text-decoration: underline;
}

.alp-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 8px;
}

.alp-footer-links a {
    color: #555;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.alp-footer-links a:hover {
    color: #1e88e5;
    background: rgba(30, 136, 229, 0.1);
}

.alp-footer-separator {
    color: #ccc;
    font-size: 13px;
    margin: 0 2px;
}

/* Responsive footer adjustments */
@media (max-width: 768px) {
    .alp-footer-links {
        flex-direction: column;
        gap: 10px 0;
    }
    
    .alp-footer-separator {
        display: none;
    }
    
    .alp-footer-links a {
        display: inline-block;
        padding: 6px 12px;
        margin: 2px 0;
        border: 1px solid #e1e5e9;
        border-radius: 6px;
        background: white;
    }
}

/* Object Exclusion Styles */
.alp-object-with-exclusion {
    position: relative;
    display: inline-block;
}

.alp-add-exclusion-icon {
    display: none;
    margin-left: 6px;
    color: #1e88e5;
    cursor: pointer;
    transition: all 0.2s ease;
    vertical-align: middle;
    opacity: 0.7;
}

/* Show icon when hovering over the entire table cell */
.alp-col-object:hover .alp-add-exclusion-icon {
    display: inline-block;
}

.alp-add-exclusion-icon:hover {
    opacity: 1;
    transform: scale(1.15);
}

.alp-add-exclusion-icon svg {
    vertical-align: middle;
}

/* Already Excluded - Green Checkmark */
.alp-exclusion-status-icon {
    display: inline-block;
    margin-left: 6px;
    color: #46b450;
    vertical-align: middle;
    cursor: default;
}

.alp-exclusion-status-icon svg {
    vertical-align: middle;
}

.alp-object-excluded .alp-add-exclusion-icon {
    display: none !important;
}

/* Exclusion Confirmation Popup */
.alp-exclusion-popup {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 16px;
    z-index: 10000;
    min-width: 300px;
    max-width: 400px;
}

.alp-exclusion-popup-message {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
}

.alp-exclusion-popup-object {
    font-weight: 600;
    color: #1e88e5;
}

.alp-exclusion-popup-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.alp-exclusion-popup-btn {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 3px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.alp-exclusion-popup-btn:hover {
    border-color: #999;
}

.alp-exclusion-popup-btn-primary {
    background: #2271b1;
    color: white;
    border-color: #2271b1;
}

.alp-exclusion-popup-btn-primary:hover {
    background: #135e96;
    border-color: #135e96;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alp-exclusion-popup-btn-primary svg {
    width: 12px;
    height: 12px;
    margin-right: 4px;
    vertical-align: middle;
    margin-top: -2px;
}

/* Toast Notification */
.alp-exclusion-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #46b450;
    color: white;
    padding: 14px 20px;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    font-size: 14px;
    animation: alpSlideIn 0.3s ease;
    min-width: 300px;
    max-width: 500px;
    word-wrap: break-word;
}

.alp-exclusion-toast.error {
    background: #dc3232;
}

@keyframes alpSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alp-exclusion-toast-close {
    margin-left: 12px;
    cursor: pointer;
    font-weight: bold;
    opacity: 0.8;
}

.alp-exclusion-toast-close:hover {
    opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .alp-add-exclusion-icon {
        display: inline-block;
        margin-left: 8px;
        padding: 4px;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        align-items: center;
    }
    
    .alp-exclusion-popup {
        left: 50% !important;
        transform: translateX(-50%);
        min-width: 280px;
    }
    
    .alp-exclusion-toast {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 20px;
    }
}

/* Excluded Custom Post Types - Premium Feature Styling */
.alp-premium-checkbox-examples {
    margin-left: 20px;
    margin-bottom: 15px;
}

.alp-premium-example-label {
    display: block;
    margin-bottom: 8px;
    opacity: 0.6;
}

.alp-post-type-slug {
    font-size: 0.95em;
    color: #666;
}

/* -----------------------------------------------------------------------
   Log Channels page heading subtitle
----------------------------------------------------------------------- */
.alp-channels-subtitle {
    box-sizing: border-box;
    width: 100%;
    margin: 10px 0 0;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 500;
    color: #1d2327;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
}

/* -----------------------------------------------------------------------
   Log Channels info blocks (shared: free locked screen + premium tab)
----------------------------------------------------------------------- */
.alp-channels-info-blocks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0 0;
}

.alp-channels-info-block {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #f6f7f7;
    border-left: 4px solid #1e88e5;
    border-radius: 0 6px 6px 0;
    padding: 14px 16px;
}

.alp-channels-info-block--security {
    border-left-color: #e53935;
}

.alp-channels-info-block--how-it-works {
    border-left-color: #2e7d32;
}

.alp-channels-info-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f0fe;
    border-radius: 6px;
    color: #1e88e5;
    margin-top: 2px;
}

.alp-channels-info-block--security .alp-channels-info-icon {
    background: #fdecea;
    color: #e53935;
}

.alp-channels-info-block--how-it-works .alp-channels-info-icon {
    background: #e8f5e9;
    color: #2e7d32;
}

.alp-channels-info-body h4 {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
}

.alp-channels-info-body p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #3c434a;
}

/* =========================================================
   Login Flood Guard — settings sub-section
   ========================================================= */
.alp-sub-settings {
    margin-top: 8px;
    margin-left: 24px;
    padding: 10px 14px;
    background: #f6f7f7;
    border-left: 3px solid #c3c4c7;
    border-radius: 0 4px 4px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.alp-sub-settings--disabled {
    opacity: 0.65;
}

.alp-sub-settings--disabled .alp-sub-settings__label {
    cursor: not-allowed;
}

.alp-sub-settings__row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.alp-sub-settings__row--stacked {
    align-items: flex-start;
}

.alp-sub-settings__stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
}

/* Tight spacing under the checkbox row; beat .form-table p / p.description margins from wp-admin */
.alp-sub-settings .alp-sub-settings__stack > p.description.alp-sub-settings__description {
    margin: 0;
    margin-top: 3px;
    padding-left: 24px;
    font-size: 13px;
    line-height: 1.45;
    color: #646970;
    white-space: nowrap;
}

.alp-sub-settings__label {
    font-size: 13px;
    color: #3c434a;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    cursor: pointer;
}

.alp-sub-settings__label--inline {
    white-space: nowrap;
}

.alp-sub-settings__select {
    font-size: 13px;
    padding: 2px 6px;
    height: 28px;
}

.alp-sub-settings__suffix {
    font-size: 13px;
    color: #3c434a;
    line-height: 1.4;
}

/* Sub-settings labels use white-space: nowrap on --inline; reset for tooltips so text wraps like elsewhere */
.alp-sub-settings .alp-tooltip {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    overflow-x: hidden;
    box-sizing: border-box;
}

.alp-help-icon--row-end {
    flex-shrink: 0;
    margin-left: 2px;
}

/* Keep tooltip on-screen when the icon sits at the end of a row */
.alp-help-icon--row-end .alp-tooltip {
    left: auto;
    right: 0;
    transform: none;
}

/* =========================================================
   Login Flood Guard — inline notice on the log view
   ========================================================= */
.alp-flood-guard-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: #e8f4fd;
    border: 1px solid #72aee6;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
    color: #1d2327;
}

.alp-flood-guard-notice__icon {
    flex-shrink: 0;
    margin-top: 1px;
    fill: #2271b1;
}