/* Family Member Module Styles */
.family-member-module {
    padding: 15px;
}

/* Controls (Add/Remove buttons) */
.family-members-controls.portfolio-actions {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

.family-members-controls .add-item-btn,
.family-members-controls .remove-item-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.family-members-controls .add-item-btn {
    background-color: var(--gradient-start, #3498db);
}

.family-members-controls .add-item-btn:hover {
    background-color: var(--gradient-end, #2980b9);
}

.family-members-controls .remove-item-btn {
    background-color: #f44336;
}

.family-members-controls .remove-item-btn:hover {
    background-color: #d32f2f;
}

/* Table Wrapper */
.family-members-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* Table Styles */
.family-members-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.family-members-table th,
.family-members-table td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.family-members-table th {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    font-weight: 600;
    font-size: 0.9em;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Column Widths */
.family-members-table th:nth-child(1),
.family-members-table td:nth-child(1) {
    width: 22%;
    min-width: 90px;
}

.family-members-table th:nth-child(2),
.family-members-table td:nth-child(2) {
    width: 22%;
    min-width: 90px;
}

.family-members-table th:nth-child(3),
.family-members-table td:nth-child(3) {
    width: 15%;
    min-width: 60px;
}

.family-members-table th:nth-child(4),
.family-members-table td:nth-child(4) {
    width: 18%;
    min-width: 70px;
}

.family-members-table th:nth-child(5),
.family-members-table td:nth-child(5) {
    width: 23%;
    min-width: 90px;
}

/* Row Hover Effect */
.family-members-table tbody tr:hover {
    background-color: rgba(220, 240, 255, 0.3);
}

/* Input and Select Styles */
.family-members-table select,
.family-members-table input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 13px;
    text-align: center;
}

.family-members-table select:focus,
.family-members-table input:focus {
    border-color: #64b5f6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(100, 181, 246, 0.2);
}

.family-members-table input:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* Specific styles for the card header icon */
.family-member-header h3 i {
    color: #9b59b6;
    margin-right: 8px;
}

/* Disabled global input style */
.disabled-input {
    cursor: not-allowed;
    background-color: #f5f7fa;
}

/* Grayed out option style (for browser support) */
option:disabled {
    color: #ccc;
    background-color: #f9f9f9;
}
