/**
 * BRA Family Manager Styles
 */

/* Family Display */
.bra-family {
    max-width: 800px;
    margin: 0 auto;
}

.bra-family-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.bra-family-header h3 {
    margin: 0;
    color: #2563EB;
}

.bra-children-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bra-child-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #2563EB;
}

.bra-child-card h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.bra-child-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.bra-child-details span {
    font-size: 0.9em;
    color: #666;
}

.bra-debutante-badge {
    background: #2563EB !important;
    color: #fff !important;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85em !important;
}

/* Common Form Elements */
.bra-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.bra-form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bra-form-field label {
    font-weight: 500;
    color: #333;
    font-size: 0.9em;
}

.bra-form-field input,
.bra-form-field select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.bra-form-field input:focus,
.bra-form-field select:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 3px rgba(139, 0, 0, 0.2);
}

.bra-button {
    display: inline-block;
    background: #2563EB;
    color: #fff !important;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.bra-button:hover {
    background: #1D4ED8;
    text-decoration: none;
}

.bra-button-secondary {
    display: inline-block;
    background: #6c757d;
    color: #fff !important;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.bra-button-secondary:hover {
    background: #5a6268;
    text-decoration: none;
}

.bra-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.bra-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.bra-notice {
    background: #f8f9fa;
    border: 1px solid #ddd;
    color: #666;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

/* Member Section */
.bra-member-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.bra-member-section h3 {
    margin: 0 0 15px 0;
    color: #2563EB;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Spouse Section */
.bra-spouse-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.bra-spouse-section h3 {
    margin: 0 0 15px 0;
    color: #2563EB;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.bra-children-section h3 {
    margin: 0 0 15px 0;
    color: #2563EB;
}

/* Spouse Display */
.bra-spouse-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #2563EB;
}

.bra-spouse-info h4 {
    margin: 0 0 10px 0;
    color: #2563EB;
}

.bra-spouse-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.bra-spouse-details span {
    font-size: 0.9em;
    color: #666;
}

/* Edit Family Form */
.bra-edit-family {
    max-width: 800px;
    margin: 0 auto;
}

.bra-children-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.bra-child-form-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.bra-child-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.bra-child-form-header h4 {
    margin: 0;
    color: #2563EB;
}

.bra-remove-child {
    background: #dc3545 !important;
    color: #fff !important;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.bra-remove-child:hover {
    background: #c82333;
}

#bra-add-child {
    margin-bottom: 20px;
    color: #fff !important;
}

/* Debutantes Table */
.bra-debutantes {
    max-width: 900px;
    margin: 0 auto;
}

.bra-debutantes-filter {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bra-debutantes-filter select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.bra-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bra-table th {
    background: #2563EB;
    color: #fff;
    padding: 12px 15px;
    text-align: left;
    font-weight: 500;
}

.bra-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.bra-table tr:last-child td {
    border-bottom: none;
}

.bra-table tr:hover td {
    background: #f8f9fa;
}

/* Responsive */
@media (max-width: 768px) {
    .bra-family-header {
        flex-direction: column;
        gap: 15px;
    }

    .bra-child-details {
        flex-direction: column;
        gap: 8px;
    }

    .bra-table {
        font-size: 0.9em;
    }

    .bra-table th,
    .bra-table td {
        padding: 10px;
    }
}
