:root {
    --primary: #6b8fbf;
    --secondary: #8fa9c9;
    --surface: #f8fbff;
    --text: #0f172a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fafafa;
    color: var(--text);
}

.card-modern {
    border: 1px solid #c7d7ee;
    border-radius: 1.25rem;
    box-shadow: 0 20px 45px rgba(107, 143, 191, 0.18);
    overflow: hidden;
}

.card-header-modern {
    background: linear-gradient(135deg, #eef4ff 0%, #dce9f8 100%);
    color: var(--text);
    padding: 1.25rem 1.5rem;
    border: 1px solid #c7d7ee;
    border-radius: 1rem;
    border-bottom: 2px solid #a7bad8;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.form-control, .form-select, textarea.form-control {
    border-radius: 0.85rem;
    padding: 0.75rem 0.95rem;
    text-transform: uppercase;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(107, 143, 191, 0.18);
}

.btn-primary {
    border-radius: 0.85rem;
    padding: 0.7rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 0;
    box-shadow: 0 8px 20px rgba(107, 143, 191, 0.22);
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #819dbf, #a8b8cf);
    box-shadow: 0 10px 24px rgba(107, 143, 191, 0.28);
}

.badge-soft {
    background: rgba(107, 143, 191, 0.16);
    color: var(--primary);
}

.card-header-modern .btn-outline-light {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    border: 1px solid rgba(107, 143, 191, 0.35);
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(107, 143, 191, 0.16);
}

.card-header-modern .btn-outline-light:hover,
.card-header-modern .btn-outline-light:focus {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 8px 18px rgba(107, 143, 191, 0.25);
}

.section-familiar {
    background: linear-gradient(135deg, #eef4ff 0%, #f7faff 100%);
    border: 1px solid #c7d7ee;
    border-radius: 1.2rem;
    padding: 1.4rem;
    margin-top: 2rem;
    box-shadow: 0 10px 24px rgba(107, 143, 191, 0.10);
}

.section-familiar .section-title {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.section-familiar .section-subtitle {
    color: #5d6b82;
    font-size: 0.95rem;
}

.table-familiar {
    border-radius: 0.9rem;
    overflow: hidden;
}

.table-familiar thead {
    background: linear-gradient(135deg, #eef4ff, #f8fbff);
}

.table-familiar th {
    font-weight: 600;
    color: var(--primary);
    border-bottom: 0;
    white-space: nowrap;
    text-align: center;
}

.table-familiar td {
    vertical-align: middle;
    padding: 0.8rem 0.75rem;
    white-space: nowrap;
    text-align: center;
}

.table-familiar tbody tr:hover {
    background-color: #f7faff;
}

.table-familiar .col-nombre {
  
    width: 44%;
}

.table-familiar .col-cedula {
   
    width: 10%;
}

.table-familiar .col-parentesco {
  
    width: 16%;
}

.table-familiar .col-sexo {
    
    width: 5%;
}

.table-familiar .col-edad {
   
    width: 5%;
}

.table-familiar .col-acciones {
  
    width: 10%;
}

.table-familiar .col-acciones th,
.table-familiar .col-acciones td {
    text-align: center;
}

.table-familiar th.col-acciones {
    text-align: center !important;
}

.table-familiar .btn-outline-primary,
.table-familiar .btn-outline-danger {
    border-radius: 0.7rem;
    padding: 0.35rem 0.7rem;
}

.table-familiar .btn-action-icon {
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.7rem;
    margin-left: 0.2rem;
}

.table-familiar .btn-action-icon i {
    font-size: 0.95rem;
}

.form-familiar {
    background: linear-gradient(135deg, #f1f6ff 0%, #eef4ff 100%);
    border: 1px solid #c7d7ee;
    border-radius: 1rem;
    padding: 1rem;
    margin-top: 1.25rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

#form-personal {
    background: linear-gradient(135deg, #eef4ff 0%, #f7faff 100%);
    border: 1px solid #c7d7ee;
    border-radius: 1.2rem;
    padding: 1.25rem;
    box-shadow: 0 10px 24px rgba(107, 143, 191, 0.10);
}

/* Sidebar Toggle Styles */
.sidebar.collapsed {
    width: 85px !important;
}

.sidebar.collapsed .sidebar-text {
    display: none !important;
}

.sidebar.collapsed .sidebar-header-container {
    flex-direction: column;
    padding: 0 !important;
    gap: 0.8rem;
}

.sidebar.collapsed .sidebar-logo,
.sidebar.collapsed .sidebar-icon,
.sidebar.collapsed .sidebar-user-icon {
    margin-right: 0 !important;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.sidebar.collapsed .sidebar-user-toggle {
    justify-content: center;
}

.sidebar.collapsed .sidebar-user-toggle::after {
    display: none;
}

