* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    height: 100vh;
    overflow: hidden;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    height: 100vh;
    background: white;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Header */
.header {
    background: #4e6903;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

.title {
    font-size: 20px;
    font-weight: 500;
}

.header-right {
    display: flex;
    gap: 10px;
}

.icon-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.icon-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Navigation tabs */
.nav-tabs {
    background: #4e6903;
    display: flex;
    padding: 0 20px;
}

.tab {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    padding: 15px 20px;
    cursor: pointer;
    font-size: 16px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab.active {
    color: white;
    border-bottom-color: white;
}

.tab:hover {
    color: white;
}

/* Family list */
.family-list {
    flex: 1;
    overflow-y: auto;
    background: white;
}

.family-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.family-item:hover {
    background-color: #f8f9fa;
}

.family-item:last-child {
    border-bottom: none;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
}

.family-info {
    flex: 1;
    min-width: 0;
}

.family-name {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.family-details {
    font-size: 14px;
    color: #666;
    line-height: 1.3;
    display: -webkit-box;
    overflow: hidden;
}

.family-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 10px;
    flex-shrink: 0;
}

.family-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.family-location {
    font-size: 11px;
    color: #bbb;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Responsive design */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
    }
    
    .header {
        padding: 12px 15px;
    }
    
    .family-item {
        padding: 12px 15px;
    }
    
    .avatar {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .family-name {
        font-size: 15px;
    }
    
    .family-details {
        font-size: 13px;
    }
}

/* Scrollbar styling */
.family-list::-webkit-scrollbar {
    width: 6px;
}

.family-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.family-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.family-list::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}
