/* style.css - Stylesheet untuk Aplikasi Silsilah Keluarga */

:root {
    --primary-color: #7c2d12; /* Deep Rust / Brown */
    --primary-dark: #451a03; /* Darker Brown */
    --primary-light: #fff7ed;
    --accent-color: #d97706; /* Golden Amber */
    --accent-light: #fef3c7;
    --highlight-color: #fbbf24; /* Gold */
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-app: #fcfcf9; /* Off-white / Cream */
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --danger-color: #ef4444;
    --success-color: #10b981;
    --font-heading: 'Playfair Display', serif;
}

/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-app);
    color: var(--text-main);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Layout Container */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--bg-card);
    min-height: 100vh;
    box-shadow: var(--shadow-lg);
    position: relative;
    padding-bottom: 80px; /* Space for bottom menu */
}

.header {
    background-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    gap: 15px;
}

.header-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.header h1 {
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.welcome-text {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 400;
}

.header-side {
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-area h1 {
    font-size: 1.35rem;
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.user-info span {
    white-space: nowrap;
}

.logout-btn {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.logout-btn:hover {
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    background-color: var(--bg-app);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar for clean look */
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    padding: 1rem 1.5rem;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

.nav-tab:hover {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.nav-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: white;
}

/* Search Bar */
.search-bar {
    padding: 1.5rem;
    position: relative;
}

.search-bar form {
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1.25rem;
    padding-right: 3.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 109, 167, 0.2);
}

.search-icon {
    background-color: var(--primary-color);
    color: white;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -44px;
    transition: var(--transition);
    font-size: 1.1rem;
}

.search-icon:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

/* Content Container */
.content-container {
    padding: 0 15px;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.75rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(124, 45, 18, 0.85), rgba(69, 26, 3, 0.9)), url('../uploads/photos/hero-bg.png');
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    color: white;
    text-align: center;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

.hero-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 0;
    opacity: 0.15;
}

.hero-icon {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.4));
}

.icon-left {
    transform: translateX(-20px);
}

.icon-right {
    transform: translateX(20px);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    color: var(--highlight-color);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Stats container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Welcome Box */
.welcome-box {
    background-color: var(--primary-light);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--accent-color);
    margin-bottom: 3rem;
}

.welcome-box h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.welcome-box p {
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Buttons upgrade */
.btn-outline {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline:active {
    transform: translateY(1px);
}

/* Controls Panel */
.controls-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-box label {
    font-weight: bold;
}

.filter-box select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.zoom-btn {
    width: 30px;
    height: 30px;
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
}

/* Family Tree */
.family-tree-container {
    border: 1px solid #ccc;
    background-color: white;
    overflow: auto;
    padding: 20px;
    position: relative;
    min-height: 400px;
    max-height: 600px;
}

.family-tree {
    transform-origin: top left;
    transition: transform 0.3s;
}

.generation-row {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
}

.generation-label {
    font-weight: bold;
    color: #555;
    margin-bottom: 10px;
    background-color: #f0f0f0;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

.generation-members {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.family-member {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.family-member:hover {
    transform: scale(1.05);
}

.member-node {
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 0.75rem;
    width: 100px;
    height: 100px;
    word-break: break-word;
    text-align: center;
    line-height: 1.2;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.family-member:hover .member-node {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Generation colors */
.gen1 .member-node {
    background-color: #4a6da7;
}

.gen2 .member-node {
    background-color: #6889c0;
}

.gen3 .member-node {
    background-color: #86a7db;
}

.gen4 .member-node {
    background-color: #a3c2f5;
}

/* Legend */
.legend {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.legend h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
}

.legend-color.gen1 {
    background-color: #4a6da7;
}

.legend-color.gen2 {
    background-color: #6889c0;
}

.legend-color.gen3 {
    background-color: #86a7db;
}

.legend-color.gen4 {
    background-color: #a3c2f5;
}

/* Members List */
.filter-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.members-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.member-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-card);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.member-photo {
    height: 200px;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.member-card:hover .member-photo img {
    transform: scale(1.05);
}

.no-photo {
    font-size: 3.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.member-info {
    padding: 1.25rem;
}

.member-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

.member-info p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.view-profile-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.view-profile-btn:hover {
    background-color: var(--primary-dark);
    text-decoration: none;
}

/* Utility & Form Classes */
.w-full { width: 100% !important; }
.text-center { text-align: center !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mb-4 { margin-bottom: 1rem !important; }

.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: var(--transition);
    background-color: #fff;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 109, 167, 0.1);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    box-shadow: 0 4px 14px 0 rgba(124, 45, 18, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 45, 18, 0.4);
    color: white;
    text-decoration: none;
}

.btn-primary:active {
    transform: translateY(1px);
}

.error-text {
    display: block;
    color: var(--danger-color);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}


/* Google Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: white;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    width: 100%;
}

.btn-google:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    text-decoration: none;
    color: #374151;
}

.btn-google img {
    width: 20px !important;
    height: 20px !important;
    max-width: 100%;
}

/* Action Buttons */
.action-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.add-btn {
    background-color: #4a6da7;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.add-btn:hover {
    background-color: #3a5a8f;
    text-decoration: none;
}

/* Coming Soon */
.coming-soon {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

/* Bottom Menu */
.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 0;
    z-index: 100;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}

.menu-item {
    color: var(--text-muted);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
}

.menu-item:hover, .menu-item.active {
    color: var(--primary-color);
}

.menu-icon {
    background-color: var(--primary-light);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 4px;
    font-size: 1.25rem;
    transition: var(--transition);
}

.menu-item:hover .menu-icon {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    position: relative;
    background-color: var(--bg-card);
    margin: 2rem auto;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 1.25rem 1.5rem;
    background-color: var(--bg-card);
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.close-btn {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.modal-body {
    padding: 1.5rem;
}

/* Profile Modal */
.profile-header {
    display: flex;
    margin-bottom: 20px;
}

.profile-img {
    width: 100px;
    height: 100px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #999;
    margin-right: 20px;
    overflow: hidden;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h2 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.profile-detail {
    color: #666;
    margin-bottom: 3px;
}

.divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 15px 0;
}

.relationship-section {
    margin-bottom: 15px;
}

.relationship-section h4 {
    margin-bottom: 5px;
    font-size: 1rem;
    color: #555;
}

.relationship-section ul {
    list-style: none;
    padding-left: 20px;
}

.relationship-section li {
    margin-bottom: 3px;
}

.profile-bio {
    margin-bottom: 20px;
}

.profile-bio h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.view-full-profile-btn, .edit-profile-btn {
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.view-full-profile-btn {
    background-color: #4a6da7;
    color: white;
}

.edit-profile-btn {
    background-color: #e0e0e0;
    color: #333;
}

/* Add Menu Modal */
.add-menu-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.add-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.add-option:hover {
    background-color: #f0f0f0;
    text-decoration: none;
}

.add-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .app-container {
        padding-bottom: 60px;
    }
    
    .header {
        padding: 0.75rem 1rem;
    }

    .header-content {
        flex-direction: row; /* Keep side-by-side if possible */
        justify-content: space-between;
        align-items: center;
    }

    .logo-area h1 {
        font-size: 0.95rem;
    }

    .user-info {
        gap: 5px;
    }

    .logout-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    .nav-tab {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-img {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .family-tree-container {
        padding: 10px;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
    }

    .hero-section {
        padding: 2.5rem 1rem;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .hero-content h2 {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .welcome-box {
        padding: 1.5rem;
    }

    .hero-bg-decoration {
        display: none;
    }
}

@media (max-width: 480px) {
    .members-list {
        grid-template-columns: 1fr;
    }
    
    .add-menu-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .family-member .member-node {
        width: 70px;
        height: 70px;
        font-size: 0.7rem;
    }
    
    .generation-members {
        gap: 15px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary, .btn-outline {
        width: 100%;
    }
}