/* ============================================================
   pro Do - Employee Raise Review Generator
   Brand Colors: Flower Pink #ECCCC9, Light Pink #F5E0DE,
                 Mint Green #D4EDDA, Gray #F5F5F5, Dark #333
   ============================================================ */

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

body {
    font-family: 'Calibri', 'Segoe UI', sans-serif;
    background: #FAF7F7;
    color: #333;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.header img {
    width: 180px;
    margin-bottom: 8px;
}

.header h1 {
    font-size: 22px;
    color: #666;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.header .subtitle {
    font-size: 13px;
    color: #C48A86;
    font-weight: 600;
    margin-top: 4px;
}

/* Section Cards */
.section-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #f0e8e7;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #C48A86;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #F5E0DE;
}

/* Form Fields */
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.form-row.triple {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.form-group input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Calibri', sans-serif;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #FAFAFA;
}

.form-group input:focus {
    outline: none;
    border-color: #ECCCC9;
    box-shadow: 0 0 0 3px rgba(236, 204, 201, 0.3);
    background: #fff;
}

.form-group input::placeholder {
    color: #ccc;
}

/* Wage inputs */
.wage-input-wrap {
    position: relative;
}

.wage-input-wrap .prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
}

.wage-input-wrap input {
    padding-left: 24px;
}

/* Actual wage hint (shows calculation below) */
.calc-hint {
    font-size: 10px;
    color: #999;
    text-align: center;
    margin-top: 2px;
    font-style: italic;
    min-height: 14px;
}

/* Actual wage read-only styling */
#actual_wage[readonly] {
    background: #F0F0F0;
    color: #2E8660;
    font-weight: 700;
    cursor: default;
    border-color: #D4EDDA;
}

/* YTD row — Gross / Hours = Actual Wage */
.ytd-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 16px;
    padding: 14px 16px;
    background: #FAFAFA;
    border: 1px dashed #ddd;
    border-radius: 10px;
}

.ytd-row .form-group {
    flex: 1;
}

.ytd-row .form-group label {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.ytd-row .form-group input {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Calibri', sans-serif;
    color: #333;
    background: #fff;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ytd-row .form-group input:focus {
    outline: none;
    border-color: #ECCCC9;
    box-shadow: 0 0 0 3px rgba(236, 204, 201, 0.3);
}

.calc-symbol-group {
    flex: 0 0 30px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 4px;
}

.calc-symbol {
    font-size: 20px;
    color: #bbb;
    font-weight: 300;
}

.actual-wage-result {
    padding: 8px 12px;
    background: #D4EDDA;
    border: 2px solid #B8D9C5;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #2E8660;
    text-align: center;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.actual-wage-result.has-value {
    background: #C8EDC8;
    border-color: #2E8660;
    font-size: 18px;
}

/* Scoring Categories Grid */
.scoring-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.score-card {
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    border: 1px solid #eee;
}

.score-card.gray { background: #F5F5F5; }
.score-card.pink { background: #F5E0DE; }
.score-card.mint { background: #D4EDDA; }

.score-card h3 {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

.score-card .tiers {
    font-size: 12px;
    color: #888;
    line-height: 1.8;
    margin-bottom: 10px;
}

.score-card .tiers .tier {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.score-card .tiers .tier.active {
    color: #2E8660;
    font-weight: 700;
}

.score-card .tiers .tier .raise-amt {
    font-weight: 600;
}

.score-card input {
    width: 100%;
    max-width: 140px;
    padding: 8px 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    font-family: 'Calibri', sans-serif;
    transition: border-color 0.2s;
}

.score-card input:focus {
    outline: none;
    border-color: #C48A86;
    box-shadow: 0 0 0 3px rgba(196, 138, 134, 0.2);
}

.score-card .raise-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    background: #2E8660;
    color: white;
    transition: all 0.3s;
}

.score-card .raise-badge.zero {
    background: #ccc;
    color: #666;
}

/* Culture Bucket Table */
.culture-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
}

.culture-table thead th {
    background: #222;
    color: #fff;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.culture-table thead th:first-child {
    text-align: left;
}

.culture-table thead th:last-child {
    text-align: center;
    width: 120px;
}

.culture-table tbody td {
    padding: 8px 14px;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

.culture-table tbody tr:nth-child(odd) {
    background: #F5E0DE;
}

.culture-table tbody tr:nth-child(even) {
    background: #fff;
}

.culture-table tbody td:last-child {
    text-align: center;
}

.culture-table tbody input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    font-family: 'Calibri', sans-serif;
}

.culture-table tbody input:focus {
    outline: none;
    border-color: #C48A86;
    box-shadow: 0 0 0 2px rgba(196, 138, 134, 0.2);
}

.culture-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #D4EDDA;
    padding: 12px 16px;
    border-radius: 0 0 8px 8px;
    margin-top: -1px;
}

.culture-total-row .label {
    font-weight: 700;
    color: #555;
    font-size: 14px;
}

.culture-total-row .value {
    font-weight: 700;
    color: #2E8660;
    font-size: 16px;
}

.culture-scoring-guide {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: #888;
}

.culture-scoring-guide span {
    margin: 0 6px;
}

/* Summary Panel */
.summary-panel {
    background: linear-gradient(135deg, #F5E0DE 0%, #ECCCC9 100%);
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.summary-panel h2 {
    text-align: center;
    color: #555;
    font-size: 18px;
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    font-size: 14px;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row .cat-name {
    color: #555;
    font-weight: 500;
}

.summary-row .cat-raise {
    color: #2E8660;
    font-weight: 700;
}

.summary-totals {
    margin-top: 16px;
    background: #D4EDDA;
    border-radius: 10px;
    padding: 16px;
}

.summary-totals .total-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 15px;
}

.summary-totals .total-row .label {
    color: #2E8660;
    font-weight: 700;
}

.summary-totals .total-row .value {
    color: #2E8660;
    font-weight: 700;
    font-size: 17px;
}

/* Generate Button */
.generate-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #C48A86, #ECCCC9);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Calibri', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(196, 138, 134, 0.3);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 138, 134, 0.4);
}

.generate-btn:active {
    transform: translateY(0);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Status Messages */
.status-msg {
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 14px;
    display: none;
}

.status-msg.success {
    display: block;
    background: #D4EDDA;
    color: #2E8660;
    border: 1px solid #B8D9C5;
}

.status-msg.error {
    display: block;
    background: #F8D7DA;
    color: #842029;
    border: 1px solid #F1AEB5;
}

.status-msg.loading {
    display: block;
    background: #F5E0DE;
    color: #C48A86;
    border: 1px solid #ECCCC9;
}

/* Employee Search Dropdown */
.employee-search-group {
    position: relative;
}

.search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.dropdown-item:hover {
    background: #F5E0DE;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item .emp-name {
    font-weight: 600;
    color: #333;
    flex: 1;
}

.dropdown-item .emp-location {
    font-size: 11px;
    color: #999;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
}

.dropdown-item .match-exact {
    font-size: 10px;
    color: #2E8660;
    background: #D4EDDA;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.dropdown-item .match-fuzzy {
    font-size: 10px;
    color: #856404;
    background: #FFF3CD;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.dropdown-item .match-partial {
    font-size: 10px;
    color: #856404;
    background: #FFF3CD;
    padding: 2px 8px;
    border-radius: 10px;
}

.dropdown-item.custom-name-item {
    background: #F9F5F5;
    border-top: 1px dashed #ECCCC9;
}

.dropdown-item.custom-name-item:hover {
    background: #F5E0DE;
}

.dropdown-item .emp-custom-tag {
    font-size: 10px;
    color: #C48A86;
    background: #ECCCC9;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
}

/* Quick-Reference Panel */
.ref-panel {
    background: linear-gradient(135deg, #FDFBFB 0%, #F5F0EF 100%);
    border: 1px solid #ECCCC9;
    border-radius: 10px;
    padding: 16px;
    margin: 14px 0 18px;
    animation: refSlideIn 0.25s ease-out;
}

.ref-panel.ref-animate {
    animation: refSlideIn 0.25s ease-out;
}

@keyframes refSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.ref-header {
    margin-bottom: 12px;
}

.ref-title {
    font-size: 13px;
    color: #666;
}

.ref-title strong {
    color: #333;
}

.ref-location {
    display: inline-block;
    font-size: 11px;
    color: #999;
    background: #f0f0f0;
    padding: 1px 8px;
    border-radius: 10px;
    margin-left: 4px;
    font-weight: 400;
}

.ref-links {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.ref-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.ref-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.ref-link.paychex { background: #E8F4F0; border-color: #C5E1D8; }
.ref-link.paychex:hover { background: #D4EDDA; }

.ref-link.boulevard { background: #F5E0DE; border-color: #ECCCC9; }
.ref-link.boulevard:hover { background: #EDD2CF; }

.ref-link.birdeye { background: #E8EEF5; border-color: #C5D5E8; }
.ref-link.birdeye:hover { background: #D8E4F0; }

.ref-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
}

.ref-link.paychex .ref-icon { background: #2E8660; }
.ref-link.boulevard .ref-icon { background: #C48A86; }
.ref-link.birdeye .ref-icon { background: #5B7FA5; }

.ref-link-info {
    flex: 1;
    min-width: 0;
}

.ref-link-name {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #444;
    line-height: 1.2;
}

.ref-link-hint {
    display: block;
    font-size: 10px;
    color: #888;
    line-height: 1.3;
    margin-top: 2px;
}

.ref-link-hint strong {
    color: #666;
}

.ref-arrow {
    font-size: 20px;
    color: #bbb;
    font-weight: 300;
    flex-shrink: 0;
}

.ref-link:hover .ref-arrow {
    color: #888;
}

/* Reference guide section */
.ref-guide {
    background: #fff;
    border-radius: 8px;
    padding: 12px 14px;
    border: 1px solid #eee;
}

.ref-guide-title {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ref-guide-grid {
    display: flex;
    gap: 16px;
}

.ref-guide-item {
    flex: 1;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.ref-guide-source {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #999;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    margin-top: 1px;
}

.ref-guide-item:first-child .ref-guide-source { background: #2E8660; }
.ref-guide-item:nth-child(2) .ref-guide-source { background: #C48A86; }

.ref-guide-fields {
    font-size: 11px;
    color: #777;
    line-height: 1.5;
}

.ref-guide-fields strong {
    color: #444;
}

.ref-guide-fields em {
    font-style: normal;
    color: #C48A86;
    font-weight: 600;
}

/* Location select */
select#salon_location {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Calibri', sans-serif;
    color: #333;
    background: #FAFAFA;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

select#salon_location:focus {
    outline: none;
    border-color: #ECCCC9;
    box-shadow: 0 0 0 3px rgba(236, 204, 201, 0.3);
    background: #fff;
}

/* (Birdeye panel removed — reviews entered manually) */

/* Cache Info */
.cache-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
    font-size: 11px;
    color: #999;
    flex-wrap: wrap;
}

.cache-divider {
    color: #ddd;
    font-size: 10px;
}

.add-employee-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    align-items: center;
}

.add-employee-row input[type="text"] {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    font-family: inherit;
}

.add-employee-row input[type="text"]:focus {
    border-color: #ECCCC9;
    outline: none;
    box-shadow: 0 0 0 2px rgba(236, 204, 201, 0.3);
}

.add-employee-row select {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    font-family: inherit;
    background: #fff;
    color: #666;
}

.add-employee-save {
    padding: 6px 14px;
    background: #C48A86;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.add-employee-save:hover {
    background: #A06D6A;
}

.add-employee-cancel {
    padding: 6px 10px;
    background: none;
    color: #999;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
}

.add-employee-cancel:hover {
    background: #f5f5f5;
    color: #666;
}

.cache-info #cacheAge {
    font-style: italic;
}

.refresh-link {
    background: none;
    border: none;
    color: #C48A86;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: inherit;
}

.refresh-link:hover {
    background: #F5E0DE;
    color: #A06D6A;
}

.refresh-link:disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* (Login bar removed — no more live scraper connections) */

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: #ccc;
    font-size: 12px;
}
