/* === START Page (CAISE style) === */
:root {
    --main-font-color: rgba(0,0,0,.87);
    --background-light: #fafafa;
    --blue-primary: #004A99;
    --blue-light: #3B7DDD;
    --caise-green: #65be57;
    --caise-green-background: #dbf5d7;
    --muted: #6b7280;
    --error: #b91c1c;
    --error-border: #fecaca;
    --error-background: #fee2e2;
}

html {
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--main-font-color);
    margin: 0;
    background: var(--background-light);
    padding: 2rem;
}

.start-container {
    max-width: 560px;
    margin: 20px auto;
    padding: 2rem;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.start-header {
    text-align: center;
    margin-bottom: 2rem;
}

.start-header img {
    height: 100px;
    width: auto;
    margin-bottom: 1rem;
}


.start-header h1 {
    text-align: center;
    color: var(--blue-primary);
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    line-height: 1.4;
}

.start-header ul {
    text-align: left;
}

.error {
    text-align: center;
    background: var(--error-background);
    border: 1px solid var(--error-border);
    color: var(--error);
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 18px;
}

.start-header .box {
    border: 1px solid #d9dde6;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 14px; }


button {
    background-color: var(--blue-primary);
    border: none;
    color: #fff;
    padding: .75em 1.2em;
    font-size: 1em;
    border-radius: .4em;
    cursor: pointer;
    margin-top: .5em;
    width: 100%;
}

button:hover {
    background-color: var(--blue-light);
}

button:active {
    transform: translateY(1px);
}

.field {
    margin-top:10px;
    margin-bottom: 18px;
}

.field label {
    width: 100%;
    display: block;
    color: var(--blue-primary);
    font-weight: 600;
    margin-bottom: 6px;
}

.field input[type="file"],
.field input[type="number"] {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
}

.field .muted {
    color: var(--muted);
    font-size: 0.9rem;
}

.field select {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #d9dde6; }

.tooltip-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-tip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: 20px;
    top: 100%;
    margin-top: -10px;
    background: var(--caise-green-background);
    border: 1px solid var(--caise-green);
    color: var(--caise-green);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    z-index: 10;
}

.tooltip-wrapper.show-tip .custom-tip {
    visibility: visible;
    opacity: 1;
}

.field .hint {
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--muted);
}

h1.middle {
    text-align: center;
    color: var(--blue-primary);
    margin: 0;
    font-size: 1.6em;
    font-weight: 600;
    line-height: 1.4;
}

.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-overlay.show {
  display: flex;
}

.loader-box {
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  padding: 18px 20px;
  width: min(420px, 90vw);
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 5px solid rgba(0,0,0,0.12);
  border-top-color: rgba(44,62,80,0.9);
  margin: 0 auto 12px;
  animation: spin 0.9s linear infinite;
}

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

.loader-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.loader-sub {
  font-size: 0.92rem;
  opacity: 0.85;
}


footer {
    text-align: center;
    margin-top: 3rem;
    width: auto;
}

footer img {
    max-width: 500px;
}


