#ref-checker-container {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

#ref-checker-container button {
   color:black;
   background-color: #2295cc;
}

.ref-checker-field {
    margin-bottom: 15px;
}

.ref-checker-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

#ref-checker-submit {
    background-color: #2295cc;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#ref-checker-submit:hover {
    background-color: #005177;
}

#ref-checker-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.ref-checker-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ref-checker-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Spinner */
#ref-checker-spinner {
    margin-top: 10px;
    font-style: italic;
}

.spinner-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 5px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Results Table */
.ref-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.ref-results-table th, .ref-results-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.ref-results-table th {
    background-color: #eee;
}

.ref-row-verified { background-color: #d4edda !important; }
.ref-row-suspect { background-color: #fff3cd !important; }
.ref-row-hallucinated { background-color: #f8d7da !important; }
.ref-row-manual_check { background-color: #e2e3e5 !important; }

.ref-status-icon {
    font-weight: bold;
    margin-right: 5px;
}

.ref-issues-list {
    margin: 5px 0 0 0;
    padding-left: 20px;
    font-size: 0.9em;
}

.ref-source-link {
    display: inline-block;
    padding: 4px 8px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.85em;
}

.ref-gs-link {
    display: inline-block;
    padding: 5px 10px;
    background: #4285F4;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.2em;
    line-height: 1;
}

.ref-gs-link:hover {
    background: #357ae8;
}

.ref-export-pdf-btn {
    background-color: #d9534f !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    margin-bottom: 15px !important;
    font-weight: bold !important;
}

.ref-export-pdf-btn:hover {
    background-color: #c9302c !important;
}

.ref-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    border-top: 2px solid #eee;
    padding-top: 20px;
}

/* DataTables Overrides */
#ref-results-datatable_wrapper {
    margin-top: 10px;
}

.dt-buttons {
    margin-bottom: 15px;
}

/* Jobs Table */
#ref-checker-jobs-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#ref-checker-jobs-list th, #ref-checker-jobs-list td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

#ref-checker-jobs-list th {
    background: #f4f4f4;
}

.view-results, .delete-job {
    padding: 5px 10px;
    margin: 10px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    display: inline;
}

.view-results {
    background: #e7f3ff;
    border-color: #b3d7ff;
    color: #0056b3;
}

.delete-job {
    background: #fff !important;
}

.view-results:hover {
    background: #d0e7ff;
}

.delete-job:hover {
    background: #fff !important;
    border-color: #fcc;
    color: #c00;
}

.action-th  {
    min-width:300px;
}

.action-td {
    text-align:center;
}
