/* आधारभूत शैली */
.db-dashboard {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.db-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.db-tab {
    padding: 12px 24px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.db-tab:hover {
    color: #e91e63;
}

.db-tab.active {
    border-bottom-color: #e91e63;
    color: #e91e63;
}

.db-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-height: 400px;
}

/* फर्म */
.db-form-group {
    margin-bottom: 20px;
}

.db-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.db-form-group input,
.db-form-group select,
.db-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.db-form-group textarea {
    min-height: 80px;
}

/* बटन */
.db-btn-primary {
    background: #e91e63;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.db-btn-primary:hover {
    background: #c2185b;
}

.db-btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.db-btn-secondary:hover {
    background: #e0e0e0;
}

/* टूलबार */
.db-tree-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    align-items: center;
}

.db-view-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-left: auto;
}

.db-view-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

/* मोडल */
.db-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.db-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
}

.db-modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.db-modal-close:hover {
    color: #333;
}

/* व्यक्ति कार्ड */
.db-person {
    display: inline-block;
    padding: 12px 16px;
    margin: 8px;
    border: 2px solid #ddd;
    border-radius: 8px;
    min-width: 120px;
    text-align: center;
    background: #fff;
    transition: all 0.3s;
    cursor: pointer;
}

.db-person:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.db-person.alive {
    border-color: #4caf50;
}

.db-person.deceased {
    border-color: #9e9e9e;
    opacity: 0.7;
}

.db-person .db-name {
    font-weight: 600;
    font-size: 16px;
}

.db-person.female .db-name {
    color: #e91e63;
}

.db-person .db-status {
    font-size: 12px;
    margin-top: 4px;
}

.db-person .db-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin: 5px auto;
    display: block;
}

/* रिपोर्ट */
.db-report-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.db-stat-card {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.db-stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #e91e63;
}

.db-stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* प्रिन्ट */
@media print {
    .db-tree-toolbar,
    .db-tabs,
    .db-btn-primary,
    .db-btn-secondary {
        display: none !important;
    }
    .db-content {
        box-shadow: none !important;
        padding: 0 !important;
    }
    .db-person {
        break-inside: avoid;
    }
}