/* This is a simplified set for basic layout and styling */
.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.p-2 {
    padding: 0.5rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.transition-colors {
    transition-property: background-color, border-color, color, fill, stroke;
}

.duration-200 {
    transition-duration: 200ms;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.hover\:bg-gray-200:hover {
    background-color: #e5e7eb;
}

.text-gray-700 {
    color: #374151;
}

.text-xl {
    font-size: 1.25rem;
}

.font-bold {
    font-weight: 700;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.bg-gray-600 {
    background-color: #4b5563;
}

.bg-opacity-50 {
    background-color: rgba(75, 85, 99, 0.5);
}

.z-50 {
    z-index: 50;
}

.max-w-sm {
    max-width: 24rem;
}

.w-full {
    width: 100%;
}

.text-center {
    text-align: center;
}

.bg-white {
    background-color: #fff;
    margin-left: auto;
    margin-right: auto;
}

.p-6 {
    padding: 1.5rem;
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hidden {
    display: none;
    !important
}

/* Custom styles for the plugin UI */
#debug-troubleshoot-alert-modal {
    z-index: 60 !important;
}

#debug-troubleshoot-confirm-modal {
    z-index: 50 !important;
}

.debug-troubleshooter-wrap {
    margin-top: 20px;
}

.debug-troubleshooter-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 782px) {

    /* WordPress admin breakpoint */
    .debug-troubleshooter-content {
        grid-template-columns: 1fr 1fr;
    }

    .full-width-section {
        grid-column: 1 / -1;
    }
}

.debug-troubleshooter-section {
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    padding: 0;
    border-radius: 5px;
}

.debug-troubleshooter-section.standalone-section {
    padding: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #c3c4c7;
}

.section-header h2 {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    font-size: 1.3em;
}

.section-content {
    padding: 20px;
}

.standalone-section .section-header {
    padding: 0 0 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

/* Site Info Grid Layout */
.site-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.debug-troubleshooter-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 0;
    border-radius: 4px;
    margin-bottom: 15px;
}

.debug-troubleshooter-card:last-child {
    margin-bottom: 0;
}

.debug-troubleshooter-card h3 {
    margin: 0;
    font-size: 1.1em;
    color: #2c3338;
}

.debug-troubleshooter-card h4 {
    font-size: 1em;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.debug-troubleshooter-card p,
.debug-troubleshooter-card li {
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 13px;
}

.debug-troubleshooter-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.debug-troubleshooter-card li:last-child {
    border-bottom: none;
}

.info-sub-list {
    list-style: none;
    margin: 10px 0 15px 0;
    padding: 0;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #f0f0f0;
    border-radius: 3px;
    background: #fff;
}

.info-sub-list li {
    padding: 8px 10px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    margin-bottom: 0 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-sub-list li:last-child {
    border-bottom: none !important;
}

.info-sub-list-toggle {
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
}

.info-sub-list-toggle:hover {
    text-decoration: underline;
}

.status-active,
.status-network-active,
.status-inactive {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-active {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-network-active {
    background-color: #cff4fc;
    color: #055160;
}

.status-inactive {
    background-color: #f8d7da;
    color: #58151c;
}

/* Card Collapsible Styles */
.card-collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    background: #f9f9f9;
}

.debug-troubleshooter-card.collapsible .card-collapsible-header {
    border-bottom: 1px solid #e0e0e0;
}

.card-collapsible-header:hover {
    background: #f1f1f1;
}

.card-collapsible-header .dashicons {
    transition: transform 0.2s ease-in-out;
}

.card-collapsible-header.collapsed .dashicons {
    transform: rotate(-90deg);
}

.card-collapsible-content {
    padding: 15px;
}

.card-collapsible-content.hidden {
    display: none;
}

.debug-troubleshooter-card:not(.collapsible) {
    padding: 15px;
}

.debug-troubleshooter-card:not(.collapsible) h3 {
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}


#troubleshoot-mode-controls {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

#troubleshoot-theme-select {
    width: 100%;
    max-width: 300px;
}

.plugin-list {
    max-height: 400px;
    /* Scrollable area for plugins */
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
    background: #fefefe;
}

.plugin-list .plugin-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}

.plugin-list .plugin-item:last-child {
    border-bottom: none;
}

.plugin-list .plugin-item:hover {
    background-color: #f8f8f8;
}

.plugin-list .plugin-item input[type="checkbox"] {
    margin-right: 10px;
}

.button-danger {
    background: #dc3232;
    border-color: #dc3232;
    color: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}

.button-danger:hover {
    background: #e25b5b;
    border-color: #e25b5b;
    color: #fff;
}

.debug-troubleshoot-notice {
    border-left-color: #fbc02d !important;
    /* Yellow for warning */
}

/* Debug Log Viewer */
.debug-log-viewer-wrapper {
    margin-top: 20px;
}

.debug-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.debug-log-header h3 {
    margin: 0;
    font-size: 1.2em;
}

#debug-log-viewer {
    width: 100%;
    background-color: #282c34;
    color: #abb2bf;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    white-space: pre;
    overflow-wrap: normal;
    overflow-x: auto;
}

/* Confirmation Modal */
.confirm-buttons {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}