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

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: #333;
    overflow: hidden;
}

/* ===================================================================
   HEADER med tabbar
   =================================================================== */
#app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    z-index: 100;
    background: #1b4332;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 24px;
}

#header-brand h1 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

#tab-bar {
    display: flex;
    gap: 4px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    font-weight: 500;
}

.tab-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.tab-btn.active {
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-weight: 600;
}

/* ===================================================================
   APP-BODY (under header)
   =================================================================== */
#app-body {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    bottom: 0;
}

/* ---- Tab content container ---- */
.tab-content {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

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

/* ---- Sidor som inte är kartan (Inställningar, Om) ---- */
.page-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 32px 24px;
    height: 100%;
    overflow-y: auto;
}

.page-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1b4332;
}

/* ===================================================================
   SIDEBAR (Karta-fliken)
   =================================================================== */
#sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 360px;
    height: 100%;
    z-index: 10;
    background: #fff;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: width 0.2s ease;
}

#sidebar-header h2 {
    padding: 16px;
    background: #2d6a4f;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

#filter-panel {
    padding: 16px;
    border-bottom: 1px solid #eee;
}

#filter-panel h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #555;
}

#filter-panel label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    color: #444;
}

#filter-panel select {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

#filter-panel input[type="checkbox"] {
    margin-right: 2px;
}

#info-panel {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

#info-panel h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
}

#info-text {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

#info-details {
    font-size: 13px;
}

/* ---- Detail panel (shown when clicking a notification) ---- */
#detail-panel {
    flex: 1;
    padding: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #1565c0;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 5;
}

.detail-header h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: #fff;
    word-break: break-word;
}

.detail-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.detail-feedback-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 4px;
    line-height: 1;
    transition: background 0.15s;
}

.detail-feedback-btn:hover {
    background: rgba(255, 193, 7, 0.5);
}

.detail-close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 4px;
    line-height: 1;
    transition: background 0.15s;
}

.detail-close-btn:hover {
    background: rgba(255,255,255,0.35);
}

.detail-meta {
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.detail-meta .info-row {
    padding: 3px 0;
}

.detail-section {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}

.detail-section .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top-color: #1565c0;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

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

/* Species table in detail panel */
.species-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.species-table th {
    text-align: left;
    font-size: 11px;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 6px;
    border-bottom: 2px solid #eee;
}

.species-table td {
    padding: 4px 6px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

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

.species-table tr:hover td {
    background: #f5f8ff;
}

/* Info rows (shared) */
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-label {
    color: #888;
    font-weight: 500;
}

.info-value {
    color: #333;
    text-align: right;
    max-width: 200px;
    word-break: break-word;
}

/* ---- Map ---- */
#map-container {
    position: absolute;
    top: 0;
    left: 360px;
    right: 0;
    bottom: 0;
}

#map {
    width: 100%;
    height: 100%;
}

/* ---- Popup ---- */
.maplibregl-popup-content {
    font-size: 13px;
    padding: 12px;
    max-width: 300px;
}

.maplibregl-popup-content h4 {
    margin-bottom: 6px;
    color: #2d6a4f;
}

/* ===================================================================
   INSTÄLLNINGAR
   =================================================================== */
.settings-section {
    margin-bottom: 28px;
}

.settings-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: #555;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    color: #444;
}

.settings-row select,
.settings-row input[type="text"],
.settings-row input[type="number"] {
    width: 200px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
}

.settings-actions {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.btn-primary {
    background: #2d6a4f;
    color: #fff;
    border: none;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-primary:hover {
    background: #1b4332;
}

/* ===================================================================
   OM-SIDAN
   =================================================================== */
.about-section {
    margin-bottom: 24px;
}

.about-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1b4332;
    margin-bottom: 8px;
}

.about-section p,
.about-section li {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.about-section ul {
    padding-left: 20px;
}

.about-section li {
    margin-bottom: 4px;
}

.about-section code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
}

.about-section a {
    color: #1565c0;
    text-decoration: none;
}

.about-section a:hover {
    text-decoration: underline;
}

/* ===================================================================
   STATUSFLIK
   =================================================================== */
.status-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
}

.status-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 14px 18px;
    flex: 1;
    min-width: 200px;
    transition: background 0.2s;
}

.status-card:hover {
    background: #f0f0f0;
}

.status-indicator {
    font-size: 24px;
    line-height: 1;
}

.status-indicator.ok { color: #2d6a4f; }
.status-indicator.error { color: #d32f2f; }
.status-indicator.warning { color: #f57c00; }

.status-info {
    flex: 1;
}

.status-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.status-detail {
    font-size: 12px;
    color: #666;
}

.status-big-number {
    font-size: 42px;
    font-weight: 700;
    color: #1565c0;
    margin: 8px 0 4px;
    line-height: 1.1;
}

.status-subtitle {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
}

.status-section {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.status-section:last-child {
    border-bottom: none;
}

.status-section h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.status-table-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.status-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.status-table th {
    background: #f0f0f0;
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
}

.status-table td {
    padding: 6px 12px;
    border-bottom: 1px solid #f0f0f0;
}

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

.status-table tr:hover td {
    background: #f8f9fa;
}

/* ===================================================================
   ADMINPANEL
   =================================================================== */
.admin-section {
    margin-bottom: 24px;
}

.admin-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

.admin-login-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* ==== ÅTERKOPPLINGSFORMULÄR ==== */
#feedback-section {
    background: #f8f9ff;
    border: 1px solid #d0d7f0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 28px;
}
#feedback-section h3 {
    margin-top: 0;
    color: #1a237e;
}
#feedback-section .info-text {
    color: #555;
    font-size: 13px;
    margin-bottom: 12px;
}
#feedback-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
#feedback-form label span {
    font-weight: 600;
    font-size: 13px;
    color: #333;
}
#feedback-form select,
#feedback-form textarea {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}
#feedback-form select:focus,
#feedback-form textarea:focus {
    border-color: #1565c0;
    outline: none;
    box-shadow: 0 0 0 2px rgba(21, 101, 192, 0.15);
}
#feedback-form input[type="range"] {
    cursor: pointer;
    accent-color: #1565c0;
}
.feedback-btn {
    width: 100%;
    padding: 10px;
    background: #1565c0;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.feedback-btn:hover {
    background: #0d47a1;
}
.feedback-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
#feedback-result {
    padding: 6px 0;
    min-height: 20px;
}
#feedback-priority-label {
    font-weight: 700;
    font-size: 14px;
    color: #1565c0;
    min-width: 20px;
    text-align: center;
}

/* ----- Batch-import: resultat och force-knapp ----- */
#batch-result {
    background: #f9f9fb;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 14px 16px;
    margin-top: 12px;
    font-size: 13px;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
}

#batch-result .error-type-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    margin-bottom: 4px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    font-size: 13px;
}

#batch-result .error-type-item .err-type-name {
    font-weight: 600;
    color: #d32f2f;
}

#batch-result .error-type-item .err-type-count {
    background: #d32f2f;
    color: #fff;
    border-radius: 10px;
    padding: 1px 10px;
    font-size: 12px;
    font-weight: 700;
}

#batch-result .error-type-item .err-type-detail {
    color: #888;
    font-size: 11px;
    margin-top: 2px;
}

#batch-result .error-type-summary-title {
    font-weight: 700;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

#batch-result .no-errors {
    color: #2d6a4f;
    font-weight: 600;
    padding: 8px 0;
}

/* Force-import knapp */
#force-reimport-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 18px;
    background: #e65100;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

#force-reimport-btn:hover {
    background: #bf360c;
}

#force-reimport-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#force-reimport-btn .spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

#force-reimport-btn.loading .spinner {
    display: inline-block;
}

/* ===================================================================
   INFO BUBBLE (batch-analys förklaring)
   =================================================================== */
.info-bubble-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1565c0;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    margin-left: 6px;
    vertical-align: middle;
    transition: background 0.2s;
    user-select: none;
}
.info-bubble-icon:hover {
    background: #0d47a1;
}
.info-bubble-content {
    margin-top: 8px;
    padding: 16px 20px;
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.7;
    color: #1a237e;
}
.info-bubble-content h4 {
    font-size: 14px;
    font-weight: 700;
    margin-top: 12px;
    margin-bottom: 6px;
    color: #0d47a1;
}
.info-bubble-content h4:first-child {
    margin-top: 0;
}
.info-bubble-content ul,
.info-bubble-content ol {
    margin: 4px 0 8px 20px;
    padding: 0;
}
.info-bubble-content li {
    margin-bottom: 4px;
}

/* ===================================================================
   RAPPORTÖR-FLIK
   =================================================================== */
#rapportor-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 360px;
    height: 100%;
    z-index: 10;
    background: #fff;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 16px;
}

#rapportor-sidebar h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1b4332;
    margin-bottom: 16px;
}

.rapportor-controls {
    margin-bottom: 16px;
}

.rapportor-select-label {
    display: block;
    font-size: 13px;
    color: #444;
    margin-bottom: 12px;
}

.rapportor-select {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
}

.rapportor-time-control {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
}

.rapportor-time-control h4 {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.rapportor-date-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.rapportor-date-row label {
    flex: 1;
    font-size: 12px;
    color: #666;
}

.rapportor-date-input {
    display: block;
    width: 100%;
    margin-top: 2px;
    padding: 5px 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
}

.rapportor-preset-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.rapportor-preset-btn {
    padding: 4px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.rapportor-preset-btn:hover {
    background: #e8f5e9;
    border-color: #2d6a4f;
    color: #1b4332;
}

.rapportor-top-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-top: 8px;
}

.rapportor-top-table th {
    background: #f5f5f5;
    color: #555;
    font-weight: 600;
    padding: 6px 4px;
    text-align: left;
    font-size: 11px;
    border-bottom: 2px solid #e0e0e0;
}

.rapportor-top-table td {
    padding: 5px 4px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.rapportor-top-table tr:hover {
    background: #f0f7ff;
}

.rapportor-top-table .rapportor-checkbox {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

#rapportor-content h3 {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

/* ===================================================================
   ARTER-FLIK (samma layout som rapportör)
   =================================================================== */
#arter-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 360px;
    height: 100%;
    z-index: 10;
    background: #fff;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 16px;
}

#arter-sidebar h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1b4332;
    margin-bottom: 16px;
}

#arter-map-container {
    position: absolute;
    top: 0;
    left: 360px;
    right: 0;
    bottom: 0;
}

#arter-map {
    width: 100%;
    height: 100%;
}

.arter-species-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 0 4px;
    transition: transform 0.15s;
    line-height: 1;
}

.arter-species-btn:hover {
    transform: scale(1.2);
}

.arter-species-btn.active {
    filter: drop-shadow(0 0 3px currentColor);
}

/* ---- Rapportör karta ---- */
#rapportor-map-container {
    position: absolute;
    top: 0;
    left: 360px;
    right: 0;
    bottom: 0;
}

#rapportor-map {
    width: 100%;
    height: 100%;
}

.rapportor-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    background: #fff;
    border-radius: 6px;
    padding: 10px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    font-size: 12px;
}

.rapportor-legend h4 {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}

/* ===================================================================
   DATAEXPORT-FLIK
   =================================================================== */
.export-section {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.export-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1b4332;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.export-hint {
    font-size: 11px;
    font-weight: 400;
    color: #888;
}

.export-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.export-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
}

.export-radio input[type="radio"] {
    accent-color: #1b4332;
}

.export-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.export-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

.export-select,
.export-input {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
    width: 100%;
}

.export-column-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.export-regex-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
}

.export-regex-toggle input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.export-regex-toggle span {
    user-select: none;
}

.export-column-hint {
    font-size: 11px;
    color: #999;
    margin-left: auto;
}

.export-column-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.btn-small {
    padding: 4px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    color: #555;
    transition: background 0.2s;
}

.btn-small:hover {
    background: #e8e8e8;
}

.export-column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 6px;
    max-height: 400px;
    overflow-y: auto;
    padding: 4px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
}

.export-column-section-header {
    padding: 8px 12px;
    margin: 8px 0 4px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}

.export-column-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}

.export-column-item:hover {
    background: #e8f5e9;
}

.export-column-item input[type="checkbox"] {
    accent-color: #1b4332;
}

.export-column-item .col-type-badge {
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 3px;
    color: #fff;
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

.col-type-both {
    background: #1b4332;
}

.col-type-notifications {
    background: #1565c0;
}

.col-type-observations {
    background: #e65100;
}

.export-column-item .col-name {
    font-weight: 500;
    color: #333;
}

.export-column-item .col-desc {
    font-size: 11px;
    color: #888;
    margin-left: 4px;
}

.export-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-secondary {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #1b4332;
    background: #fff;
    color: #1b4332;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #e8f5e9;
}

.export-progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.export-progress-fill {
    height: 100%;
    width: 0%;
    background: #1b4332;
    transition: width 0.3s ease;
}

/* ===================================================================
   FLYTANDE FEEDBACK-KNAPP
   =================================================================== */
#floating-feedback-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1565c0;
    color: #fff;
    font-size: 24px;
    border: none;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

#floating-feedback-btn:hover {
    background: #0d47a1;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(21, 101, 192, 0.5);
}

#floating-feedback-btn:active {
    transform: scale(0.95);
}
