.logiq-settings-section,
.logiq-logs-section {
    background: #fff;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.logiq-actions {
    margin-bottom: 15px;
}

.logiq-actions .button {
    margin-right: 10px;
}

/* Toast notification */
.logiq-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: #1d2327;
    color: #fff;
    font-size: 13px;
    padding: 9px 18px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 99999;
    pointer-events: none;
    white-space: nowrap;
}

.logiq-toast.logiq-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.logiq-toast.logiq-toast-error {
    background: #b32d2e;
}

/* Search bar */
.logiq-search {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 15px 0 12px;
    max-width: 480px;
    position: relative;
}

.logiq-search-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    background: #fff;
    border: 1.5px solid #8c8f94;
    border-radius: 4px;
    padding: 0 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.logiq-search-wrap:focus-within {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.logiq-search-icon {
    color: #8c8f94;
    font-size: 14px;
    margin-right: 6px;
    pointer-events: none;
    flex-shrink: 0;
    line-height: 1;
}

.logiq-search #logiq-search-input {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    outline: none !important;
    padding: 6px 0;
    min-height: 30px;
    height: 30px;
    flex: 1;
    width: 100%;
    font-size: 13px;
    color: #1d2327;
}

.logiq-search #logiq-search-input::placeholder {
    color: #a7aaad;
}

/* Hide native browser clear button on search inputs */
.logiq-search #logiq-search-input::-webkit-search-cancel-button,
.logiq-search #logiq-search-input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.logiq-search-clear {
    background: none;
    border: none;
    cursor: pointer;
    color: #a7aaad;
    font-size: 16px;
    line-height: 1;
    padding: 0 2px;
    display: none;
    flex-shrink: 0;
    transition: color 0.1s;
}

.logiq-search-clear:hover {
    color: #1d2327;
}

.logiq-search-count {
    font-size: 12px;
    color: #646970;
    font-style: italic;
    margin-left: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

mark.logiq-highlight {
    background: #fff176;
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
}

.logiq-filters {
    margin: 15px 0;
}

.logiq-level-filter {
    margin-right: 5px !important;
    margin-bottom: 5px !important;
    transition: all 0.2s ease;
}

.logiq-level-filter.active {
    background: none;
    border-color: none;
}

.logiq-level-filter:not(.active):hover {
    background: rgba(0,0,0,0.05);
}

/* Fatal */
.logiq-level-filter[data-level="fatal"] {
    background: transparent;
    border-color: #dc3545;
    color: #dc3545;
}
.logiq-level-filter[data-level="fatal"].active {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
}

/* Error */
.logiq-level-filter[data-level="error"] {
    background: transparent;
    border-color: #ff4444;
    color: #ff4444;
}
.logiq-level-filter[data-level="error"].active {
    background: rgba(255, 68, 68, 0.1);
    border-color: #ff4444;
}

/* Warning */
.logiq-level-filter[data-level="warning"] {
    background: transparent;
    border-color: #ffc107;
    color: #ffc107;
}
.logiq-level-filter[data-level="warning"].active {
    background: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
}

/* Notice */
.logiq-level-filter[data-level="notice"] {
    background: transparent;
    border-color: #17a2b8;
    color: #17a2b8;
}
.logiq-level-filter[data-level="notice"].active {
    background: rgba(23, 162, 184, 0.1);
    border-color: #17a2b8;
}

/* Deprecated */
.logiq-level-filter[data-level="deprecated"] {
    background: transparent;
    border-color: #6c757d;
    color: #6c757d;
}
.logiq-level-filter[data-level="deprecated"].active {
    background: rgba(108, 117, 125, 0.1);
    border-color: #6c757d;
}

/* Info */
.logiq-level-filter[data-level="info"] {
    background: transparent;
    border-color: #28a745;
    color: #28a745;
}
.logiq-level-filter[data-level="info"].active {
    background: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
}

/* Debug */
.logiq-level-filter[data-level="debug"] {
    background: transparent;
    border-color: #6610f2;
    color: #6610f2;
}
.logiq-level-filter[data-level="debug"].active {
    background: rgba(102, 16, 242, 0.1);
    border-color: #6610f2;
}

/* All Logs filter */
.logiq-level-filter[data-level="all"] {
    background: transparent;
    border-color: #0073aa;
    color: #0073aa;
}
.logiq-level-filter[data-level="all"].active {
    background: rgba(0, 115, 170, 0.1);
    border-color: #0073aa;
}

/* Hover effect */
.logiq-level-filter:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Collapsible stack trace toggle */
.logiq-toggle-trace {
    display: inline-block;
    margin-top: 4px;
    font-size: 11px;
    color: #0073aa;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.logiq-toggle-trace:hover {
    color: #005177;
}

.logiq-entry-trace {
    margin-top: 6px;
    border-top: 1px dashed #ddd;
    padding-top: 6px;
}

.logiq-entry {
    background: #f8f9fa;
    border-left: 4px solid #ccd0d4;
    margin-bottom: 10px;
    padding: 10px;
}

.logiq-entry-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-family: monospace;
    flex-wrap: wrap;
}

/* Deduplication count badge */
.logiq-count-badge {
    display: inline-block;
    background: #e04949;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 10px;
    font-family: sans-serif;
    vertical-align: middle;
}

.logiq-copy-btn {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    font-size: 16px;
    line-height: 1;
    padding: 0 2px;
    transition: color 0.15s;
    flex-shrink: 0;
}

.logiq-copy-btn:hover,
.logiq-copy-btn.copied {
    color: #0073aa;
}

.logiq-timestamp {
    color: #666;
    margin-right: 10px;
    font-size: 12px;
    cursor: default;
    white-space: nowrap;
}

.logiq-level {
    font-weight: bold;
    margin-right: 10px;
}

.logiq-file-info {
    margin-left: 10px;
}

.logiq-editor-link {
    color: #0073aa;
    text-decoration: none;
    padding: 2px 5px;
    border-radius: 3px;
    background: rgba(0,115,170,0.1);
    transition: all 0.2s ease;
}

.logiq-editor-link:hover {
    color: #00a0d2;
    background: rgba(0,115,170,0.2);
    text-decoration: none;
}

.logiq-editor-link:focus {
    box-shadow: 0 0 0 1px #0073aa;
    outline: none;
}

.logiq-entry-content {
    background: #fff;
    padding: 10px;
    border: 1px solid #e5e5e5;
    overflow-x: auto;
}

.logiq-entry-content pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: monospace;
}

/* Log entry level colors */
.logiq-level-fatal {
    border-left: 4px solid #dc3545;  /* Red */
}
.logiq-level-fatal .logiq-level {
    color: #dc3545;
    font-weight: bold;
}

.logiq-level-error {
    border-left: 4px solid #ff4444;  /* Light Red */
}
.logiq-level-error .logiq-level {
    color: #ff4444;
    font-weight: bold;
}

.logiq-level-warning {
    border-left: 4px solid #ffc107;  /* Yellow */
}
.logiq-level-warning .logiq-level {
    color: #ffc107;
    font-weight: bold;
}

.logiq-level-notice {
    border-left: 4px solid #17a2b8;  /* Info Blue */
}
.logiq-level-notice .logiq-level {
    color: #17a2b8;
    font-weight: bold;
}

.logiq-level-deprecated {
    border-left: 4px solid #6c757d;  /* Gray */
}
.logiq-level-deprecated .logiq-level {
    color: #6c757d;
    font-weight: bold;
}

.logiq-level-info {
    border-left: 4px solid #28a745;  /* Green */
}
.logiq-level-info .logiq-level {
    color: #28a745;
    font-weight: bold;
}

.logiq-level-debug {
    border-left: 4px solid #6610f2;  /* Purple */
}
.logiq-level-debug .logiq-level {
    color: #6610f2;
    font-weight: bold;
}

.logiq-debug-info {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    font-size: 12px;
    color: #666;
}

/* Pagination */
.tablenav {
    margin: 15px 0;
}

.tablenav-pages {
    float: right;
}

.tablenav-pages a {
    display: inline-block;
    padding: 4px 8px;
    background: #fff;
    border: 1px solid #ccd0d4;
    text-decoration: none;
    margin: 0 2px;
}

.tablenav-pages a:hover {
    background: #f5f5f5;
}

.tablenav-pages .current-page {
    background: #0073aa;
    border-color: #006291;
    color: #fff;
}

/* Debug Settings Styles */
.logiq-settings-section {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    max-width: 800px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.logiq-settings-section .form-table {
    margin: 0;
}

.logiq-settings-section .form-table th {
    padding: 20px 10px 20px 0;
    width: 200px;
}

.logiq-settings-section .form-table td {
    padding: 20px 10px;
    vertical-align: top;
}

.logiq-settings-section label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.logiq-settings-section .description {
    color: #666;
    font-style: normal;
    margin-top: 4px;
}

/* Save Button and Loader Styles */
#logiq-save-debug-settings {
    margin-top: 20px;
    padding: 5px 20px;
    height: auto;
    position: relative;
    min-width: 120px;
    margin-right: 10px;
}

#logiq-save-debug-settings.saving {
    color: transparent !important;  /* Hide text while saving */
}

.logiq-spinner {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: logiq-spin 0.8s linear infinite;
}

#logiq-save-debug-settings.saving .logiq-spinner {
    display: block;
}

@keyframes logiq-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Success/Error Notices */
.notice {
    margin: 15px 0;
}

/* Debug Status Section */
.logiq-status-section {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    border-radius: 4px;
}

.logiq-status-loading {
    padding: 15px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 4px;
    margin: 10px 0;
}

.logiq-status-loading .spinner {
    float: none;
    margin: 0 10px 0 0;
    vertical-align: middle;
}

.logiq-status-content {
    padding: 15px;
}

.logiq-status-indicator {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.logiq-status-indicator .dashicons {
    margin-right: 8px;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.logiq-status-indicator.working {
    background: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.logiq-status-indicator.not-working {
    background: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

.logiq-status-messages {
    margin: 15px 0;
    padding: 15px;
    background: #f8f8f8;
    border-left: 4px solid #0073aa;
    border-radius: 0 4px 4px 0;
}

.logiq-status-messages p {
    margin: 8px 0;
    line-height: 1.5;
}

.logiq-status-messages p:first-child {
    margin-top: 0;
}

.logiq-status-messages p:last-child {
    margin-bottom: 0;
}

.logiq-status-settings {
    margin: 20px 0;
}

.logiq-status-settings h3 {
    margin: 0 0 12px 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #23282d;
}

.logiq-status-settings table {
    border-collapse: collapse;
    width: 100%;
}

.logiq-status-settings th {
    text-align: left;
    padding: 8px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
}

.logiq-status-settings td {
    padding: 8px;
    border-bottom: 1px solid #e5e5e5;
}

.logiq-status-log-file {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.logiq-status-log-file h3 {
    margin: 0 0 12px 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #23282d;
}

.logiq-status-log-file p {
    margin: 8px 0;
    font-family: monospace;
    line-height: 1.5;
}

.logiq-status-log-file p:first-child {
    margin-top: 0;
}

.logiq-status-log-file p:last-child {
    margin-bottom: 0;
}

.logiq-status-error {
    padding: 12px 15px;
    margin: 10px 0;
    background: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.logiq-status-error .dashicons {
    margin-right: 8px;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Debug Information Section */
.logiq-status-debug-info {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.logiq-status-debug-info h3 {
    margin: 0 0 12px 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #23282d;
}

.logiq-status-debug-info table {
    border-collapse: collapse;
    width: 100%;
    margin: 0;
}

.logiq-status-debug-info th {
    text-align: left;
    padding: 8px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    font-weight: 600;
    color: #23282d;
}

.logiq-status-debug-info th[colspan="2"] {
    background: #f1f1f1;
    font-size: 13px;
    padding: 10px 8px;
}

.logiq-status-debug-info td {
    padding: 8px;
    border-bottom: 1px solid #e5e5e5;
    font-family: monospace;
    font-size: 13px;
}

.logiq-status-debug-info tr:last-child td {
    border-bottom: none;
}

/* Debug Status Tabs */
.logiq-status-tabs {
    margin-top: 10px;
}
.logiq-status-tab-nav {
    display: flex;
    border-bottom: 1px solid #ccd0d4;
    margin: 0 0 20px 0;
    padding: 0;
    list-style: none;
    background: #f8f9fa;
    border-radius: 4px 4px 0 0;
}
.logiq-status-tab-nav li {
    padding: 10px 24px;
    cursor: pointer;
    color: #0073aa;
    border: 1px solid #ccd0d4;
    border-bottom: none;
    background: #f8f9fa;
    margin-right: 2px;
    border-radius: 4px 4px 0 0;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}
.logiq-status-tab-nav li.active {
    background: #fff;
    color: #23282d;
    border-bottom: 1px solid #fff;
    z-index: 2;
}
.logiq-status-tab-panel {
    display: none;
    padding: 20px 0 0 0;
}
.logiq-status-tab-panel.active {
    display: block;
} 