:root {
    --inheritance-primary: #4A148C; /* Royal Purple */
    --inheritance-secondary: #7B1FA2;
    --inheritance-soft: #F3E5F5;
    --accent-gold: #FFD700;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

.inheritance-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.inheritance-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/img/islamic-pattern.png');
    background-size: 300px;
    background-repeat: repeat;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

.text-inheritance { color: var(--inheritance-primary); }
.bg-inheritance { background-color: var(--inheritance-primary) !important; }
.bg-soft-inheritance { background-color: var(--inheritance-soft) !important; }

.btn-inheritance {
    background-color: var(--inheritance-primary);
    color: white;
    border: none;
    transition: var(--transition);
}

.btn-inheritance:hover {
    background-color: #311B92;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 20, 140, 0.2);
}

.card {
    border-radius: 1rem;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05) !important;
}

.inheritance-section {
    display: none;
    animation: slideUp 0.5s ease-out;
}

.inheritance-section.active {
    display: block;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.progress-bar {
    background: linear-gradient(90deg, var(--inheritance-primary), var(--inheritance-secondary)) !important;
}

.heir-card {
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.heir-card.selected {
    border-color: var(--inheritance-primary);
    background-color: var(--inheritance-soft);
}

.form-control:focus, .form-select:focus {
    border-color: var(--inheritance-primary);
    box-shadow: 0 0 0 0.25rem rgba(74, 20, 140, 0.1);
}

.result-table thead {
    background-color: var(--inheritance-primary);
    color: white;
}

[data-bs-theme="dark"] .card {
    background-color: #1e2125;
}

[data-bs-theme="dark"] .bg-soft-inheritance { background-color: #2D1A47 !important; }
