/* NKR Data Frontend Styles */

.nkr-data-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.nkr-data-upload {
    background: #f9f9f9;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
}

.nkr-data-table-responsive {
    overflow-x: auto;
}

.nkr-data-search {
    margin-bottom: 20px;
}

.nkr-data-search input,
.nkr-data-search select {
    margin-right: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.nkr-data-pagination {
    margin-top: 20px;
    text-align: center;
}

.nkr-data-pagination a,
.nkr-data-pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.nkr-data-pagination .current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* Download Status Styles */
.nkr-download-status {
    margin: 10px 0;
    padding: 10px;
    border-radius: 3px;
    clear: both;
}

.nkr-download-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.nkr-download-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    max-height: 400px;
    overflow-y: auto;
}

.nkr-download-status.debug {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
    max-height: 500px;
    overflow-y: auto;
}

.nkr-download-status h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
}

.nkr-download-status .debug-content {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #dee2e6;
}

/* Debug Modal Styles */
.nkr-debug-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nkr-debug-content {
    background: #fff;
    padding: 25px;
    border-radius: 5px;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.nkr-debug-modal.error .nkr-debug-content {
    border-left: 4px solid #dc3232;
}

.nkr-debug-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.nkr-debug-modal.error .nkr-debug-content h3 {
    color: #dc3232;
}

.nkr-debug-log {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 3px;
    margin-bottom: 15px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.nkr-debug-modal.error .nkr-debug-log {
    background: #fdf2f2;
    border-color: #eed3d7;
    color: #721c24;
}

.nkr-debug-close {
    background: #0073aa !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    float: right;
}

.nkr-debug-close:hover {
    background: #005177 !important;
}

.nkr-debug-modal.error .nkr-debug-close {
    background: #dc3232 !important;
}

.nkr-debug-modal.error .nkr-debug-close:hover {
    background: #a00 !important;
}
