/* Tip Pool Calculator Specific Styles */

/* Employee List Container */
.employee-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

/* Individual Employee Row */
.employee-row {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 12px;
    background: linear-gradient(to bottom right, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 4px;
}

.employee-row .employee-number {
    font-weight: 600;
    color: #003049;
    min-width: 24px;
    font-size: 14px;
}

.employee-row .employee-inputs {
    display: flex;
    gap: 8px;
    flex: 1;
    align-items: center;
}

.employee-row input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
}

.employee-row input[type="number"] {
    width: 100px;
    min-width: 80px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
}

.employee-row input:hover {
    border-color: #003049;
    box-shadow: 0 0 0 3px rgba(0, 48, 73, 0.1);
}

.employee-row input:focus {
    outline: none;
    border-color: #003049;
    box-shadow: 0 0 0 3px rgba(0, 48, 73, 0.1);
}

/* Remove Employee Button */
.remove-employee-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.remove-employee-btn:hover {
    background: #fef2f2;
    border-color: #dc2626;
    color: #dc2626;
}

.remove-employee-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.remove-employee-btn:disabled:hover {
    background: #fff;
    border-color: #ddd;
    color: #666;
}

/* Add Employee Button */
.add-employee-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 2px dashed #bae6fd;
    border-radius: 4px;
    color: #003049;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.add-employee-btn:hover {
    background: #f0f9ff;
    border-color: #003049;
}

/* Results Summary */
.results-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #bae6fd;
}

.results-summary .results-item {
    text-align: center;
}

/* Distribution Table */
.distribution-table-wrapper {
    overflow-x: auto;
    margin: 0 -16px;
    padding: 0 16px;
}

.distribution-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.distribution-table th,
.distribution-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #bae6fd;
}

.distribution-table th {
    font-weight: 600;
    color: #003049;
    background: rgba(186, 230, 253, 0.3);
}

.distribution-table th:last-child,
.distribution-table td:last-child {
    text-align: right;
}

.distribution-table tbody tr:last-child td {
    border-bottom: none;
}

.distribution-table tbody tr:hover {
    background: rgba(186, 230, 253, 0.2);
}

.distribution-table .employee-share {
    font-weight: 600;
    color: #003049;
}

/* Input Labels for Accessibility */
.employee-row input::placeholder {
    color: #999;
}

/* Mobile Responsive Styles */
@media (max-width: 640px) {
    .employee-row {
        flex-wrap: wrap;
        padding: 10px;
    }

    .employee-row .employee-inputs {
        flex-direction: column;
        width: 100%;
    }

    .employee-row input[type="text"],
    .employee-row input[type="number"] {
        width: 100%;
    }

    .employee-row .employee-number {
        flex: 1;
    }

    .results-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .distribution-table th,
    .distribution-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .employee-row {
        padding: 8px;
        gap: 6px;
    }

    .employee-row input[type="text"],
    .employee-row input[type="number"] {
        padding: 8px 10px;
        font-size: 14px;
    }

    .add-employee-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
}
