@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700&display=swap');
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Outfit', sans-serif !important;
    background-color: #f0f0f0;
}
input.row-note, input#profile-search-input {
    width: 300px;
    min-width: 180px;
    max-width: 480px;
    font-size: 0.8rem;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #bbb;
    background: #f9f9f9;
    box-sizing: border-box;
}
select.progress {
    text-align: center;
    font-size: 0.8rem;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #bbb;
    background: #f9f9f9;
    box-sizing: border-box;
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
select.progress:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.15);
}
select.progress:hover {
    border-color: #217dbb;
}
select.progress {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23777" height="16" viewBox="0 0 20 20" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7.293 8.293a1 1 0 011.414 0L10 9.586l1.293-1.293a1 1 0 111.414 1.414l-2 2a1 1 0 01-1.414 0l-2-2a1 1 0 010-1.414z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px 18px;
    padding-right: 32px;
}
/* Upload and clear controls styling */
.upload-controls {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.upload-section {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f4f6fa;
    border-radius: 6px;
    padding: 10px 16px;
    box-shadow: 0 1px 4px rgba(27,31,35,0.06);
}
.upload-section label {
    font-weight: 600;
    margin-right: 6px;
    color: #2c3e50;
}
.upload-section input[type="file"] {
    display: none;
}
.upload-btn {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    margin-right: 6px;
    transition: background 0.2s;
}
.upload-btn:hover {
    background: #217dbb;
}
.clear-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.2s;
}
.clear-btn:hover {
    background: #c0392b;
}
.upload-section .clear-btn {
    margin-left: 8px;
}
.credit {
    display: inline-block;
    background: #24292f;
    color: #fff;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid #1b1f23;
    box-shadow: 0 1px 0 rgba(27,31,35,.04);
    position: relative;
    transition: background 0.2s, border 0.2s;
    vertical-align: middle;
}
.credit:hover {
    background: #0366d6;
    border-color: #0366d6;
}
.credit .creditinformation {
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    transform: translateY(-10px);
    right: 0;
    top: 100%;
    background: #24292f;
    color: #fff;
    border: 1px solid #1b1f23;
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 4px;
    min-width: 180px;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(27,31,35,0.2);
    font-size: 12px;
    text-align: left;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.credit:hover .creditinformation {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.credittitle {
    font-weight: 600;
    font-size: 13px;
}
/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}
.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px 30px 20px 30px;
    border: 1px solid #888;
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 16px;
    top: 8px;
    cursor: pointer;
}
.close:hover, .close:focus {
    color: #e74c3c;
    text-decoration: none;
    cursor: pointer;
}
#profile-form label {
    display: block;
    margin: 8px 0 4px 0;
}
#profile-form input[type="text"], #profile-form textarea {
    width: 100%;
    padding: 4px 8px;
    margin-top: 2px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}
#save-profile-btn {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}
#save-profile-btn:hover {
    background: #217dbb;
}
h1 {
    color: #2c3e50;
}
#controls {
    margin-bottom: 20px;
}
#controls label {
    margin-right: 8px;
}
#controls select {
    margin-right: 20px;
    padding: 4px 8px;
}
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-bottom: 20px;
}
th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
th {
    background: #e3e6f0;
}
tr:nth-child(even) {
    background: #f2f2f2;
}
textarea#notes {
    font-size: 1em;
    margin-top: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    padding: 8px;
    background: #fff;
}
.drop-area {
    border: 2px dashed #888;
    padding: 40px;
    text-align: center;
    background: #f9f9f9;
    color: #444;
    margin-bottom: 20px;
    cursor: pointer;
    transition: background 0.2s;
}
.drop-area:hover {
    background: #e3e6f0;
}
button#clear-data-btn, button#clear-credits-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}
button#clear-data-btn:hover, button#clear-credits-btn:hover {
    background: #c0392b;
}
tr[style*="background-color: #e0e0e0"] {
    /* Confirmed: grey */
    background-color: #e0e0e0 !important;
}
tr[style*="background-color: #ffb84d"] {
    /* In progress (status): orange */
    background-color: #ffb84d !important;
}
tr[style*="background-color: #fff7b2"] {
    /* In progress (dropdown): yellow */
    background-color: #fff7b2 !important;
}
tr[style*="background-color: #b6f5b6"] {
    /* Completed: green */
    background-color: #b6f5b6 !important;
}

.profile-icon-tooltip-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.profile-icon-tooltip-wrapper .custom-tooltip {
    display: block;
    width: max-content;
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%) translateX(0);
    background: #24292f;
    color: #fff;
    border: 1px solid #1b1f23;
    border-radius: 6px;
    padding: 8px 12px;
    z-index: 10000;
    box-shadow: 0 8px 24px rgba(27,31,35,0.2);
    font-size: 12px;
    text-align: left;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.profile-icon-tooltip-wrapper:hover .custom-tooltip {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(5px);
    z-index: 10000;
}
.profile-icon-tooltip-wrapper:hover {
    z-index: 10000;
}
td:has(.profile-info-block) {
    overflow: visible !important;
}
.profile-info-block {
    overflow: visible !important;
}
#profile-search-bar {
    display: flex;
    gap: 10px;
    align-items: center;
}
#profile-search-results {
    position: absolute;
    top: 2em;
    left: 0;
    width: 300px;
    background: #fff;
    z-index: 10000;
    box-shadow: 0 2px 8px #0002;
    display: none;
}

.autocomplete-results {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  width: 100%;
  display: none;
}
.autocomplete-result {
  padding: 4px 8px;
  cursor: pointer;
}
.autocomplete-result:hover {
  background: #f0f0f0;
}

#progress-totals {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 300px;
}

#stats {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 300px;
}