.wp-hook-profiler-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
}

.wp-hook-profiler-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000000;
    display: flex;
    flex-direction: column;
}

.wp-hook-profiler-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #ddd;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.wp-hook-profiler-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wp-hook-profiler-header .dashicons {
    color: #2271b1;
}

.wp-hook-profiler-controls {
    display: flex;
    gap: 8px;
}

.wp-hook-profiler-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
    gap: 12px;
}

.wp-hook-profiler-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wp-hook-profiler-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    background: #f8f9fa;
}

.wp-hook-profiler-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.2s;
}

.wp-hook-profiler-tab:hover {
    background: #e9ecef;
    color: #333;
}

.wp-hook-profiler-tab.active {
    background: #2271b1;
    color: #fff;
}

.wp-hook-profiler-summary {
    display: flex;
    gap: 24px;
    padding: 16px 20px;
    background: #f0f8ff;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

.wp-hook-profiler-summary-item strong {
    color: #2271b1;
}

.wp-hook-profiler-tab-content {
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.wp-hook-profiler-search {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 12px;
    align-items: center;
}

.wp-hook-profiler-search input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.wp-hook-profiler-search select {
    min-width: 150px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.wp-hook-profiler-table-wrapper {
    flex: 1;
    overflow: auto;
    padding: 0 20px 20px;
}

.wp-hook-profiler-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wp-hook-profiler-table th {
    background: #2271b1;
    color: #fff;
    padding: 12px 16px;
    font-weight: 600;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    position: sticky;
    top: 0;
    z-index: 10;
}

.wp-hook-profiler-table th:hover {
    background: #1e5a8a;
}

.wp-hook-profiler-table th.sortable:after {
    content: " ↕";
    opacity: 0.5;
}

.wp-hook-profiler-table th.sort-asc:after {
    content: " ↑";
    opacity: 1;
}

.wp-hook-profiler-table th.sort-desc:after {
    content: " ↓";
    opacity: 1;
}

.wp-hook-profiler-table th.numeric {
    text-align: right;
}

.wp-hook-profiler-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.wp-hook-profiler-table td.numeric {
    text-align: right;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.wp-hook-profiler-table tbody tr:hover {
    background: #f8f9fa;
}

.wp-hook-profiler-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.wp-hook-profiler-table tbody tr:nth-child(even):hover {
    background: #f1f3f4;
}

.wp-hook-profiler-plugin-name {
    font-weight: 600;
    color: #2271b1;
}

.wp-hook-profiler-callback-name {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #d63384;
    word-break: break-all;
}

.wp-hook-profiler-hook-name {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #198754;
}

.wp-hook-profiler-time-high {
    color: #dc3545;
    font-weight: 600;
}

.wp-hook-profiler-time-medium {
    color: #fd7e14;
    font-weight: 600;
}

.wp-hook-profiler-time-low {
    color: #198754;
}

.wp-hook-profiler-hooks-list {
    flex: 1;
    overflow: auto;
    padding: 20px;
}

.wp-hook-profiler-hook-group {
    margin-bottom: 24px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.wp-hook-profiler-hook-header {
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    color: #333;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.wp-hook-profiler-hook-callbacks {
    padding: 16px;
}

.wp-hook-profiler-callback-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wp-hook-profiler-callback-item:last-child {
    border-bottom: none;
}

.wp-hook-profiler-callback-info {
    flex: 1;
}

.wp-hook-profiler-callback-meta {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.wp-hook-profiler-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 20px;
    margin: 20px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

/* Plugin Loading Tab Styles */
.wp-hook-profiler-file-name {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #495057;
}

.wp-hook-profiler-type-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.wp-hook-profiler-type-sunrise {
    background: #fff3cd;
    color: #856404;
}

.wp-hook-profiler-type-mu_plugin {
    background: #d1ecf1;
    color: #0c5460;
}

.wp-hook-profiler-type-network_plugin {
    background: #d4edda;
    color: #155724;
}

.wp-hook-profiler-type-plugin {
    background: #e2e3e5;
    color: #383d41;
}

.wp-hook-profiler-type-core {
    background: #f8d7da;
    color: #721c24;
}

.wp-hook-profiler-loading-summary {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.wp-hook-profiler-loading-summary h4 {
    margin: 0 0 16px 0;
    color: #2271b1;
}

.wp-hook-profiler-loading-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.wp-hook-profiler-stat {
    padding: 12px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
}

.wp-hook-profiler-stat strong {
    color: #2271b1;
    display: block;
    margin-bottom: 4px;
}

.wp-hook-profiler-stat span {
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

@media (max-width: 768px) {
    .wp-hook-profiler-panel {
        width: 95%;
        height: 90vh;
    }
    
    .wp-hook-profiler-summary {
        flex-direction: column;
        gap: 8px;
    }
    
    .wp-hook-profiler-table {
        font-size: 12px;
    }
    
    .wp-hook-profiler-search {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wp-hook-profiler-loading-stats {
        grid-template-columns: 1fr;
    }
}