body {
    padding: 10px;
    background-color: #f8f9fa;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

h1 {
    font-size: 16px;
    margin-bottom: 10px;
}

#upload-form {
    background-color: #ffffff;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 10px;
}

.form-control-sm, .form-select-sm {
    font-size: 12px;
    padding: 2px;
}

.form-label, .btn, th, td {
    font-size: 12px;
    padding: 5px;
}

.form-check-inline {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
}

table {
    width: 100%;
    margin-top: 5px;
}

th {
    text-align: center;
    background-color: #f1f1f1;
}

#plot {
    width: 100%;
    height: 400px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #ffffff;
    padding: 5px;
    margin-top: 10px;
}

.btn-sm {
    padding: 5px 10px;
}

.d-flex {
    gap: 0.5rem;
}

.ref input {
    background-color: yellow;
}

.ref button.set-ref-button {
    display: none;
}

.loading-spinner {
    display: none; /* Hidden by default */
    width: 30px;
    height: 30px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #007bff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 10px auto;
}

#global-loading {
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px 40px;
    border-radius: 10px;
    z-index: 1000;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.nav-link-hover {
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link-hover:hover {
    color: #0d6efd !important; /* Bootstrap primary */
    transform: translateY(-1px);
}

.nav-big {
    font-size: 1.2rem;
}

.accordion-button:not(.collapsed) {
    color: #0d6efd;            /* Bootstrap primary blue */
    background-color: #e7f1ff; /* Light blue background */
}

footer {
    border-top:1px solid #ccc;
    background-color:#f8f9fa;
    padding:20px;
    font-size:0.85em;
    color:#333;
    text-align:center;
    line-height:1.5;
}

.help-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 28px;
    border: 1px solid #e5e5e5;
}

.help-section h4 {
    margin-bottom: 18px;
}

.help-icon {
    font-size: 1.3rem;
    color: #0d6efd;
    margin-right: 10px;
}

.img-col img {
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.plotly-graph-div { width: 100% !important; }

div#thresholds input:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.text-justify {
    text-align: justify;
}

.cookie-notice {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: 320px;
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  z-index: 1050;
  display: none;
  animation: slideUp 0.4s ease-out;
}

.cookie-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cookie-text {
  color: #555;
  line-height: 1.4;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.sequence-col {
  width: 70%;
}

.sequence-col textarea {
  white-space: pre-wrap;
  word-break: break-all;
  max-width: 100%;
}

.data-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    transition: all 0.15s ease;
    cursor: pointer;
}

.data-btn:hover {
    background-color: #e2e8f0;
    border-color: #94a3b8;
}

.data-btn i {
    font-size: 0.95em;
}
