* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fafafa;
    color: #333;
    line-height: 1.6;
    font-weight: 300;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.header {
    background: white;
    color: #333;
    padding: 32px 40px;
    border-bottom: 1px solid #e8e8e8;
}

.header h1 {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 4px;
    color: #2c3e50;
}

.header p {
    font-size: 14px;
    color: #666;
    font-weight: 300;
}

.tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e8e8e8;
}

.tab {
    padding: 16px 40px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.tab:hover {
    color: #333;
    background: #f1f3f4;
}

.tab.active {
    color: #333;
    background: white;
    border-bottom-color: #333;
}

.content {
    padding: 40px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Database Tab Styles */
.controls {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 300;
    background: white;
    transition: border-color 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #666;
}

.search-box::before {
    content: '🔍';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
}

.filter-select {
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 300;
    background: white;
    cursor: pointer;
    color: #333;
}

.filter-select:focus {
    outline: none;
    border-color: #666;
}

.sort-btn {
    padding: 10px 20px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 300;
    transition: background-color 0.2s ease;
}

.sort-btn:hover {
    background: #555;
}

.sort-btn.desc {
    background: #666;
}

.table-container {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #f8f9fa;
    color: #333;
    padding: 16px;
    text-align: left;
    font-weight: 500;
    font-size: 13px;
    border-bottom: 1px solid #e8e8e8;
}

td {
    padding: 16px;
    border-bottom: 1px solid #f1f3f4;
    font-size: 13px;
    font-weight: 300;
    vertical-align: top;
}

tr:hover {
    background: #fafafa;
}

tr:last-child td {
    border-bottom: none;
}

.action-btn {
    padding: 6px 12px;
    margin: 0 4px 0 0;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 400;
    background: white;
    color: #666;
    transition: all 0.2s ease;
}

.btn-open {
    border-color: #10b981;
    color: #10b981;
}

.btn-open:hover {
    background: #10b981;
    color: white;
}

.btn-edit {
    border-color: #f59e0b;
    color: #f59e0b;
}

.btn-edit:hover {
    background: #f59e0b;
    color: white;
}

.btn-delete {
    border-color: #ef4444;
    color: #ef4444;
}

.btn-delete:hover {
    background: #ef4444;
    color: white;
}

.code {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 3px;
    color: #666;
}

/* Settings Tab Styles */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
}

.setting-block {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 32px;
}

.setting-block h3 {
    color: #333;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 500;
}

.setting-block textarea {
    width: 100%;
    height: 120px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 300;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    resize: vertical;
    line-height: 1.5;
    color: #333;
}

.setting-block textarea:focus {
    outline: none;
    border-color: #666;
}

.save-btn {
    background: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    margin-top: 16px;
    transition: background-color 0.2s ease;
}

.save-btn:hover {
    background: #555;
}

.no-results {
    text-align: center;
    color: #999;
    padding: 48px;
    font-size: 14px;
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 0;
        border-radius: 0;
    }

    .content {
        padding: 24px;
    }

    .header {
        padding: 24px;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: auto;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .setting-block {
        padding: 24px;
    }

    .table-container {
        overflow-x: auto;
    }

    table {
        min-width: 800px;
    }
}
.badge-section {
    margin-bottom: 40px;
}

.badge-section h2 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 16px;
    color: #333;
}

.badge-examples {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
}

/* Validation Status Badge */
.validation-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    margin-top:10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
    transition: all 0.2s ease;
}

.validation-badge.validated {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.validation-badge.checkup {
    background: rgb(255, 229, 198);;
    color: #ff3300;
    border-color: #ff4c1f;
}

.validation-badge.pending {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.validation-badge.failed {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.validation-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 6px;
}

.validation-badge.validated::before {
    background: #10b981;
}

.validation-badge.pending::before {
    background: #f59e0b;
}

.validation-badge.failed::before {
    background: #ef4444;
}

.hint{
    font-size: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: #ededed;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}
.hint ul{
    list-style-type: none;
    margin-left:0px;
}
.hint b{
    font-weight:600;
    font-size:12px;
}
/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 1200px;
    max-height: 100vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 12px 20px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
}

.modal-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #e8e8e8;
    color: #333;
}

.modal-body {
    padding: 15px;
    max-height: calc(90vh - 180px);
    overflow-y: auto;
}

.modal-form-group {
    margin-bottom: 24px;
}

.modal-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #333;
}

.modal-form-group input,
.modal-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 300;
    font-family: inherit;
    background: white;
    transition: border-color 0.2s ease;
}

.modal-form-group input:focus,
.modal-form-group textarea:focus {
    outline: none;
    border-color: #666;
}

.modal-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.code-editor-container {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    overflow: hidden;
    background: white;
}

.code-editor-header {
    background: #f8f9fa;
    padding: 12px 16px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.code-editor-title {
    font-size: 13px;
    font-weight: 400;
    color: #666;
}

.language-selector {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    font-size: 12px;
    background: white;
    color: #666;
}

.CodeMirror {
    height: 300px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.5;
}

.modal-footer {
    padding: 24px 32px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8f9fa;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn-primary {
    background: #333;
    color: white;
}

.modal-btn-primary:hover {
    background: #555;
}

.modal-btn-secondary {
    background: white;
    color: #666;
    border: 1px solid #d1d5db;
}

.modal-btn-secondary:hover {
    background: #f8f9fa;
    color: #333;
}

/* Demo button styles */
.demo-buttons {
    margin-bottom: 20px;
}

.demo-btn {
    padding: 10px 20px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 300;
    margin-right: 10px;
    transition: background-color 0.2s ease;
}

.demo-btn:hover {
    background: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal {
        width: 95%;
        max-height: 95vh;
    }

    .modal-body {
        padding: 24px;
        max-height: calc(95vh - 160px);
    }

    .modal-header,
    .modal-footer {
        padding: 16px 24px;
    }

    .CodeMirror {
        height: 250px;
    }
}
#paginationControls button {
    margin: 0 4px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
    border-radius: 4px;
}

#paginationControls button:hover {
    background: #f0f0f0;
}