/* Archives Familiales - Custom Styles */

body {
    background-color: #f8f9fa;
}

/* Tree styles */
.tree-container {
    overflow-x: auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.tree {
    text-align: center;
}

.tree ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tree-parents, .tree-children {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tree-node {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    background: #fff;
    min-width: 140px;
    margin: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tree-node:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.tree-node a {
    text-decoration: none;
    color: inherit;
}

.tree-node.male {
    border-color: #0d6efd;
    background: #e7f1ff;
}

.tree-node.female {
    border-color: #d63384;
    background: #fce4ec;
}

.tree-node.other {
    border-color: #6c757d;
    background: #f8f9fa;
}

.tree-node.root {
    border-width: 3px;
    font-size: 1.1em;
    padding: 14px 20px;
}

.tree-root-person {
    padding: 20px 0;
    border-top: 2px dashed #dee2e6;
    border-bottom: 2px dashed #dee2e6;
    margin: 16px 0;
}

.tree-section h5 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tree-unions .badge {
    font-size: 0.85em;
    margin: 2px;
}

.tree-unions .badge a {
    text-decoration: none;
}

/* Card hover effect */
.card {
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* Dashboard cards */
.display-4 {
    font-weight: 700;
}

/* Table tweaks */
.table th {
    font-weight: 600;
    white-space: nowrap;
}

/* Navbar brand icon spacing */
.navbar-brand i {
    margin-right: 4px;
}
