/**
 * SmartDingo Form Tracker Debug Overlay Styles
 */

#sdft-debug-panel {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 380px;
    max-height: 70vh;
    background: rgba(30, 30, 30, 0.95);
    color: #e0e0e0;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    overflow: hidden;
}

/* Header */
.sdft-debug-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(40, 40, 40, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: default;
}

.sdft-debug-title {
    font-weight: 700;
    font-size: 13px;
    color: #fff;
}

.sdft-debug-close {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #aaa;
    font-size: 14px;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    line-height: 1;
    transition: all 0.2s;
}

.sdft-debug-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Content */
.sdft-debug-content {
    padding: 12px 14px;
    overflow-y: auto;
    max-height: calc(70vh - 50px);
}

/* Sections */
.sdft-debug-section {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sdft-debug-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sdft-debug-section strong {
    color: #fff;
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Debug table */
.sdft-debug-table {
    width: 100%;
    border-collapse: collapse;
}

.sdft-debug-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sdft-debug-table tr:last-child {
    border-bottom: none;
}

.sdft-debug-table td {
    padding: 4px 6px;
    vertical-align: top;
}

.sdft-debug-table td:first-child {
    color: #88c0d0;
    white-space: nowrap;
    padding-right: 12px;
    font-weight: 500;
}

.sdft-debug-value {
    color: #a3be8c;
    word-break: break-all;
    max-width: 200px;
}

.sdft-debug-status {
    text-align: right;
    font-weight: 700;
    font-size: 10px;
    white-space: nowrap;
}

/* Status colors */
.sdft-debug-ok .sdft-debug-status {
    color: #a3be8c;
}

.sdft-debug-empty .sdft-debug-status {
    color: #ebcb8b;
}

.sdft-debug-disabled .sdft-debug-status {
    color: #666;
}

.sdft-debug-disabled td {
    color: #555 !important;
}

.sdft-debug-error .sdft-debug-status {
    color: #bf616a;
}

/* Code in debug */
.sdft-debug-table code {
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 11px;
    color: #d8dee9;
}

/* Responsive for small screens */
@media (max-width: 480px) {
    #sdft-debug-panel {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 16px;
    }
}
