html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* wwwroot/css/site.css */
.kamp-matrix {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.kamp-matrix td, .kamp-matrix th {
    border: 1px solid #bbb;
    padding: 2px 4px;
    text-align: center;
    width: 33.33%;
}

.kamp-matrix .top-border {
    border-top: 2px solid #333;
}

.kamp-matrix .bottom-border {
    border-bottom: 2px solid #333;
}

.kamp-matrix .row-sep {
    border-bottom: 2px solid #d00;
}

.kamp-matrix .left-border {
    border-left: 2px solid #333;
}

.kamp-matrix .right-border {
    border-right: 2px solid #333;
}

.kampberegning-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1em;
    gap: 2em;
}

.kampberegning-radiogroup {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 220px;
}

.kampberegning-radiogroup label {
    margin-bottom: 0.3em;
    white-space: nowrap;
}

/* Sticky action column in medlem admin */
.medlem-actions-sticky {
    position: sticky;
    right: 0;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    z-index: 10;
}

/* Ensure header sticky column has light background like the rest of header */
thead .medlem-actions-sticky {
    background-color: #f8f9fa;
}

.table-striped tbody tr:nth-of-type(odd) .medlem-actions-sticky {
    background-color: rgba(0,0,0,.05);
}

/* Even rows get white background */
.table-striped tbody tr:nth-of-type(even) .medlem-actions-sticky {
    background-color: white;
}

.table-warning .medlem-actions-sticky {
    background-color: #fff3cd !important;
}

/* Enhanced edit mode styling */
tr.editing-row {
    background-color: #e7f3ff !important;
    border: 3px solid #0d6efd !important;
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.3);
}

tr.editing-row td {
    border-color: #0d6efd !important;
}

tr.editing-row .medlem-actions-sticky {
    background-color: #e7f3ff !important;
}

/* Hover effect for table rows to make them more visible */
.table-hover tbody tr:hover:not(.editing-row) {
    background-color: #f8f9fa !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Loading overlay for AJAX operations */
.ajax-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.ajax-loading::after {
    content: attr(data-loading-text);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 1000;
}

/* Success animation */
@keyframes successFlash {
    0% { background-color: #d1e7dd; }
    100% { background-color: transparent; }
}

.row-success-flash {
    animation: successFlash 1s ease;
}