/* Button label swap for mobile */
.fcm-btn-label-full { display: inline; }
.fcm-btn-label-short { display: none; }
.fcm-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 600px) {
    .fcm-btn-label-full { display: none !important; }
    .fcm-btn-label-short { display: inline !important; }
    .fcm-member-action-btn .fcm-btn-icon {
        display: none !important;
    }
    .fcm-member-action-btn .fcm-btn-label-short {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }
    .fcm-member-action-remove {
        justify-content: center !important;
        min-width: 84px !important;
        max-width: 84px !important;
        width: 84px !important;
        flex: 0 0 84px !important;
    }
    .fcm-member-action-remove .fcm-btn-icon {
        display: none !important;
    }
    .fcm-member-action-remove .fcm-btn-label-short {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }
}
/* Member action buttons group */
.fcm-member-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--fcm-gray-200);
    justify-content: flex-start;
}
.fcm-member-action-btn {
    min-width: 44px;
    max-width: 120px;
    min-height: 44px;
    flex: 1 1 44px;
    font-size: 1rem;
    padding: 0.5rem 0.7rem;
    margin: 0;
    box-sizing: border-box;
.fcm-member-action-btn {
    min-width: 70px !important;
    max-width: 90px !important;
    width: 90px !important;
    min-height: 44px !important;
    max-height: 48px !important;
    height: 48px !important;
    flex: 0 0 90px !important;
    font-size: 0.98rem !important;
    padding: 0.5rem 0.3rem !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
@media (max-width: 600px) {
    .fcm-member-action-btn {
        min-width: 60px !important;
        max-width: 70px !important;
        width: 70px !important;
        min-height: 38px !important;
        max-height: 42px !important;
        height: 42px !important;
        font-size: 0.93rem !important;
        padding: 0.4rem 0.2rem !important;
    }
}
@media (max-width: 600px) {
    .fcm-member-actions {
        gap: 0.35rem;
        padding-top: 0.7rem;
    }
    .
.fcm-profile-header-row {
        min-width: 44px !important;
        max-width: 120px !important;
        min-height: 44px !important;
        flex: 1 1 44px !important;
        font-size: 1rem !important;
        padding: 0.5rem 0.7rem !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 0.7rem;
}
.fcm-btn-back {
    padding: 0.3rem 0.7rem !important;
    font-size: 1.2rem !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 50% !important;
    background: var(--fcm-gray-200) !important;
    color: var(--fcm-gray-900) !important;
    margin-right: 0.2rem !important;
    width: auto !important;
}
.fcm-profile-title {
    margin: 0;
    flex: 1;
    font-size: 1.3rem;
}
/* Member action buttons group */
.fcm-member-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--fcm-gray-200);
    justify-content: flex-start;
}
.fcm-member-action-btn {
    min-width: 44px;
    min-height: 44px;
    flex: 1 1 44px;
    font-size: 1rem;
    padding: 0.5rem 0.7rem;
    margin: 0;
    box-sizing: border-box;
}
@media (max-width: 600px) {
    .fcm-member-actions {
        gap: 0.35rem;
        padding-top: 0.7rem;
    }
    .fcm-member-action-btn {
        min-width: 38px;
        min-height: 38px;
        font-size: 0.97rem;
        padding: 0.4rem 0.5rem;
    }
}

/* Profile header row */
.fcm-profile-header-row {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 0.7rem;
}
.fcm-btn-back {
    padding: 0.3rem 0.7rem;
    font-size: 1.2rem;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    background: var(--fcm-gray-200);
    color: var(--fcm-gray-900);
    margin-right: 0.2rem;
}
.fcm-profile-title {
    margin: 0;
    flex: 1;
    font-size: 1.3rem;
}

/* Time input mobile style */
.fcm-input-time {
    min-width: 120px;
    max-width: 100%;
    font-size: 1.1rem;
    padding: 0.5rem 0.7rem;
}
@media (max-width: 600px) {
    .fcm-input-time {
        min-width: 100px;
        font-size: 1rem;
        padding: 0.4rem 0.5rem;
    }
}
/* Family Unison - Frontend Styles */

:root {
    --fcm-primary: #667eea;
    --fcm-primary-dark: #5568d3;
    --fcm-success: #48bb78;
    --fcm-warning: #f6ad55;
    --fcm-danger: #f56565;
    --fcm-gray-100: #f7fafc;
    --fcm-gray-200: #edf2f7;
    --fcm-gray-300: #e2e8f0;
    --fcm-gray-600: #718096;
    --fcm-gray-900: #1a202c;
    --info-bg: #e6f7ff;
    --info-border: #91d5ff;
}

#fcm-app-root {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Loading state */
.fcm-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.fcm-spinner {
    border: 4px solid var(--fcm-gray-300);
    border-top-color: var(--fcm-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: fcm-spin 1s linear infinite;
}

@keyframes fcm-spin {
    to { transform: rotate(360deg); }
}

/* Cards */
.fcm-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* Buttons */
.fcm-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.fcm-btn-primary {
    background: var(--fcm-primary);
    color: white;
}

.fcm-btn-primary:hover {
    background: var(--fcm-primary-dark);
}

.fcm-btn-success {
    background: var(--fcm-success);
    color: white;
}

.fcm-btn-danger {
    background: var(--fcm-danger);
    color: white;
}

/* Chore list */
.fcm-chore-list {
    display: grid;
    gap: 15px;
}

.fcm-chore-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border: 2px solid var(--fcm-gray-200);
    border-radius: 8px;
    transition: all 0.2s;
}

.fcm-chore-item:hover {
    border-color: var(--fcm-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.fcm-chore-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.fcm-chore-status-pending {
    Background: var(--fcm-gray-200);
    color: var(--fcm-gray-600);
}

.fcm-chore-status-submitted {
    background: var(--fcm-warning);
    color: white;
}

.fcm-chore-status-approved {
    background: var(--fcm-success);
    color: white;
}

.fcm-chore-status-rejected {    background: var(--fcm-danger);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    #fcm-app-root {
        padding: 10px;
    }
    
    .fcm-card {
        padding: 15px;
        margin: 10px;
    }
    
    /* Remove forced 100% width for all buttons on mobile */
    .fcm-btn {
        margin-bottom: 10px;
    }
    /* Only make buttons full width in forms or where desired */
    .fcm-btn.fcm-btn-block {
        width: 100%;
    }
    
    /* Stack grids on mobile */
    .fcm-grid-2,
    .fcm-grid-3 {
        grid-template-columns: 1fr !important;
    }
    
    /* Adjust font sizes for mobile */
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    #fcm-app-root {
        padding: 5px;
    }
    
    .fcm-card {
        padding: 12px;
        margin: 5px;
        border-radius: 6px;
    }
    
    .fcm-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .fcm-member-actions {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)) !important;
        gap: 0.5rem !important;
        align-items: stretch !important;
    }

    .fcm-member-action-btn,
    .fcm-member-action-remove {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        flex: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.35rem 0.5rem !important;
        margin: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: clip !important;
    }

    .fcm-member-action-btn .fcm-btn-icon {
        display: none !important;
    }

    .fcm-member-action-btn .fcm-btn-label-full {
        display: none !important;
    }

    .fcm-member-action-btn .fcm-btn-label-short {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        font-size: 0.92rem !important;
        line-height: 1 !important;
    }
}
